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


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -