ember.js - Render route template into resource template outlet -



ember.js - Render route template into resource template outlet -

i want render users/userdetail template within users/index template outlet remain in same page.

with nested resource works think route construction more right in code: http://emberjs.jsbin.com/jijar/1

ditch index route , utilize resource route. index landing page that's useful info want show, when aren't in deeper route (aka, show when i'm on /users, if go somewhere else, don't show said info).

app.usersroute = ember.route.extend({ model: function() { homecoming this.store.find('user'); } }); app.userscontroller = ember.arraycontroller.extend({}); <script type="text/x-handlebars" id="users"> <ul> {{#each user in model}} <li> {{#link-to 'users.userdetail' user}}{{user.fullname}}{{/link-to}} </li> {{/each}} </ul> {{outlet}} </script>

http://jsbin.com/vuhorala/1/edit

ember.js

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -