Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Salman Akram](https://uploads.teamtreehouse.com/production/profile-photos/1802082/micro_peanuts.jpg)
Salman Akram
Courses Plus Student 40,065 PointsEmber JS Questions
Question is Now, within the "kittens" template in index.html, list the names of all the kittens in <li> tags within the <ul> tag.
AnimalShelter = Ember.Application.create();
AnimalShelter.Router.map(function() {
this.resource('kittens', {path: '/'});
});
var kittens = [
{id: '1', name: 'Meowzer'},
{id: '2', name: 'Squeaky'},
{id: '3', name: 'Fluffy'}
]
AnimalShelter.KittensRoute = Ember.Route.extend({
// your code here
kittens: 'posts',
renderTemplate: function() {
this.render('posts');
},
model: function() {
return kittens;
}
});
index.html
<!DOCTYPE html>
<html>
<head>
<title>Animal Shelter</title>
</head>
<body>
<script src="js/libs/jquery-1.10.2.js"></script>
<script src="js/libs/handlebars-v1.3.0.js"></script>
<script src="js/libs/ember-1.8.1.js"></script>
<script src="js/app.js"></script>
<script type="text/x-handlebars" id="kittens">
<h1>Kittens</h1>
<p>Here is a list of all of our kittens:</p>
<ul>
{{#each}}
<li>{{name}}</li>
{{/each}}
</ul>
</script>
</body>
</html>
Bummer! You need a < ul > element within the 'kittens' template.
Not sure, if there is bug problems though I put correct there?
1 Answer
![Ken Alger](https://secure.gravatar.com/avatar/cf2cad7e6e37acacfa5201068856ed3d?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ken Alger
Treehouse TeacherSalman;
Change your js/app.js
code to remove reference to 'posts'
and replace with 'kittens'
.
Ken