ember.js - How to destroy the view between sibling routes? ie: /posts/1 to /posts/2 -
is there ember way destroy view when navigating between sibling routes?
i've had problem in several ember.js applications. user goes /posts/1 , starts doing something, goes /posts/2 , whatever loaded in view still shown sibling route. i've worked around doing transition logic reset view manually (form validation messages, comment boxes, etc), feels kind of hacky.
i think should seek calling distroy element http://emberjs.com/api/classes/ember.view.html#method_destroy on willdestroyelement hook of view ,if calling within view can phone call this.distroy(this).
ember.js
No comments:
Post a Comment