With ember.js, using computed properties, I can use either this:
myProp: computed('properties', function () { /* do stuff. */ });
Or this:
myProp: computed('properties.[]', function () { /* do stuff. */ });
What are the difference between these two approach? Which one should I use in what situation?
Aucun commentaire:
Enregistrer un commentaire