ember.js - How to address Model Names that are multiple words? -


i working on ember app in data being posted 4 different views. code below works 3 views have single word names(local, business, entertainment), on worldnews view data isn't loading.

in chrome ember inspector, worldnews model being called world-news, i'm not quite sure need change in order have data posted properly.

data info

app.worldnews = ds.model.extend({     title: ds.attr('string'),     post: ds.attr('string'),     date: ds.attr('date') });  app.worldnews.fixtures = [     {         id: '1',         title: 'lorem ipsum dolor sit amet, consectetu',         post: 'asdf.',         date: new date('1-7-2041')     } ] 

index / world news template

<script type="text/x-handlebars" data-template-name="worldnews">             <h2>world news</h2>             {{#each entries in model}}             <div class="panel panel-default">                 <div class="panel-heading">                     <h3 class="panel-title" id="panel-title">{{entries.title}} - {{entries.date}}<a class="anchorjs-link" href="#panel-title"><span class="anchorjs-icon"></span></a></h3>                 </div>                 <div class="panel-body">                     {{entries.post}}                 </div>             </div>             {{/each}}         </script> 


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -