mardi 17 décembre 2019

What are the difference between `property.[]` and `property` in computed properties

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