vendredi 7 avril 2017

What is the difference between set(this, 'agentName', 'John') and this.set('agentName', 'John') in Ember?

The same is true for 'get' methods too. Like get(this, 'agentName') and this.get('agentName') returns the same value.

In the official ember doc for get method, it shows that we are supposed to pass 2 values to get. Then how does this.get('agentName') work accurately?




Aucun commentaire:

Enregistrer un commentaire