Not seeing what I'm missing to cause 'Posts' template to be rendered blank in the browser. My other templates are rendering as normal.
I'm getting the error:
Error while processing route: posts posts is not defined ReferenceError: posts is not defined
My route file:
Blogger.PostsRoute = Ember.Route.extend({
model: function() {
return posts;
}
});
View:
<ul>
{{#each}}
<li>{{title}}</li>
{{/each}}
</ul>
Index calling the store.js file with the posts, my router, and 'posts' in the template loader:
<script src="blogger.js"></script>
<script src="router.js"></script>
<script scr="store.js"></script>
<script src="controllers/about.js"></script>
<script src="controllers/contact.js"></script>
<script src="routes/posts.js"></script>
<script>
EmberHandlebarsLoader.loadTemplates([
'posts', 'about', 'contact', 'phone', 'email', 'application'
]);
</script>
Aucun commentaire:
Enregistrer un commentaire