json - EmberJS set active class for dynamic linkTo on menu when direct accessed -
i've been trying since last week, make active class work on dynamic links:
<li>{{#linkto tag 'bw'}}black , white{{/linkto}}</li> <li>{{#linkto tag 'instax'}}instax{{/linkto}}</li> <li>{{#linkto tag 'digital'}}digital{{/linkto}}</li>
i put code running here: http://jsbin.com/opuzop/1/edit if feel ok me great :d it's photo portfolio well.
also, if try upload newer version of ember, stuff stop work, js created on
app.generalview = ember.view.extend({ didinsertelement: function() { if(this.$() !== undefined){...
it created load after view render, image resize , body resize too, , set horizontal, newer version work when accessed directly.
also, don't json tumblr , stop working.
i'm not sure, think has serialization of object, try adding in "app.tagroute" route:
serialize: function(param) { return {tag: param.tag} }
Comments
Post a Comment