Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{else}} in {{#each}} doesn't work #48

Closed
alexisabril opened this issue Oct 8, 2015 · 0 comments
Closed

{{else}} in {{#each}} doesn't work #48

alexisabril opened this issue Oct 8, 2015 · 0 comments
Milestone

Comments

@alexisabril
Copy link

Issue by daffl from Thursday Oct 08, 2015 at 00:31 GMT
Originally opened as #217


See

<can-import from="donejs-chat/models/message" />
<h5><a can-href="{ page='home' }">Home</a></h5>
<message-model get-list="{}" class="list-group">
  <div class="list-group">
    {{#each ./value}}
      <div class="list-group-item">
        <h4 class="list-group-item-heading">{{name}}</h4>
        <p class="list-group-item-text">{{message}}</p>
      </div>
    {{else}}
    <div class="list-group-item">
      <h4 class="list-group-item-heading">No messages</h4>
    </div>
    {{/each}}
  </div>
</message-model>
@alexisabril alexisabril added this to the 0.5.0 milestone Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants