Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

How to Trim data from Ember.get()

$
0
0

@SarathSantoshDamaraj wrote:

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, get(key, value)) is how my syntax is.

and get(key,value) returns a value that has white spaces in it.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles