ember.js - EmberJS - Change property except for index route -
i have next routes, controllers , views:
products products.index products.product products.category products.new
i view list of products on products
. other routes, except products.index
, want alter property blurred
on products
controller (which blurs list), can view template on top of it.
where , how should this? should set in view or controller? need able determine route kid of products
.
update
i need list on products
stays in tact, way scrollposition remembered , importantly, can 'blur' product list , show templates on top of it.
the index route created purpose. i'd recommend moving list products
products/index
template. it'll show when you're on /products
, won't show time on route/resource deeper.
if don't want that, set in controller, , follow pattern shown in answer: state of nested routes in emberjs
ember.js
No comments:
Post a Comment