lundi 20 avril 2015

Liquid Fire not recognizing some properties

I'm trying to use Liquid Fire, and it doesn't recognize some properties within the liquid fire container. It recognizes the activities property, but it doesn't recognize the individual items when I loop through activities. The transitions work normally.

This is what my code looks like:

// activity.hbs
{{#each activity in activities}}
  {{#liquid-if activity.showDetails class="activity-details" containerless=true}}
    <td>{{activity.name}}</td>
  {{/liquid-if}}
{{/each}}

// transitions.js
export default function() {
  this.transition(
    this.hasClass("activity-details"),
    this.use("toLeft")
  );
}

I also tried this, though it didn't work:

// activity.hbs
{{#each activity in activities}}
  {{#liquid-if activity.showDetails class="activity-details" containerless=true activityBinding="activity"}}
    <td>{{activity.name}}</td>
  {{/liquid-if}}
{{/each}}

I also tried this:

// activity.hbs
{{#each activity in activities}}
  {{#liquid-if activity.showDetails class="activity-details"}}
    <td>{{activity.name}}</td>
  {{/liquid-if}}
{{/each}}

What am I doing wrong?

These are the various versions:

Liquid Fire: 0.17.1
Ember:       1.10.0
Ember Data:  1.0.0-beta.16.1




Aucun commentaire:

Enregistrer un commentaire