dimanche 2 septembre 2018

How to trim data before set using Ember.set

As a newbie to Ember.

I have an Object that has to be trimmed for white-spaces before updating/assigning with ember.set.

I know it can be done with using this.set(/**/).trim(). But just set() is not supporting trim(). And I have been told this.set() is not a best way than compared to just set()

set(Object, Key, NewValue) is how my syntax is.




Aucun commentaire:

Enregistrer un commentaire