How to get all the properties from ember.js controller? -
i want values controller set using set() method.
for example : if
this.controllerfor('application').set("one", "1"); this.controllerfor('application').set("two", "2"); this.controllerfor('application').set("three", "3"); this.controllerfor('application').set("four", "4");
so how can values directly. mean dont 1 one using get() method.
you can use method getproperties
, see example
this.controllerfor('application').getproperties('one', 'two', 'three', 'four')
reference: http://emberjs.com/api/classes/ember.controller.html#method_getproperties