mardi 9 juin 2015

How to do the Synchronous call in the Ember js

Here what i have done :
I have controller called "employee" and component "Department".

From controller i want to call the function of the component how can i it ?

controller: "Employee" ::

if (this.get("callMoveleft")) {
    this.set("callMoveleft", false);
    }    


else {
       this.set("callMoveleft", true);
      }  

Component : "Department" ::

callMoveLeft: function () {
        console.log('Move left will be called');
    }.observes("callMoveleft"),

Department's function is not getting called. Please suggest me where i am doing wrong ?




Aucun commentaire:

Enregistrer un commentaire