ember.js - Ember: Programatically set queryParams in Mixin -
i'm trying programatically define queryparams in ember.mixin.
the mixin has method called when controller holding mixin initialized.
setupqueryparams: (params) -> params.foreach (param) => @get('queryparams').push(param)
later in action defined on mixin phone call @transitiontoroute({queryparams: {someparam: 'something'}})
nil happens. when explicitly define queryparams, works.
queryparams
resolved off proto of class, not instance, init
functionality wouldn't applied in time ember resolve it.
this means late binding of queryparams
isn't possible in way want.
ember.js
No comments:
Post a Comment