Count json objects


#1

Good morning, Please how to count json objects, in my view i want to return the result in a label.


#2

Hi, As per the Welcome thread, your odds of being (correctly) answered are higher at StackOverflow.

Hint: your question only seems half-part Ember related: Counting => not Ember-related; Displaying => Ember-related.


#3

Thanks, In my view i have a label, i have to put on it the count of json objects, so it will be updates every time that the json results changed, i hope i was clear.


#4

Just bind the json’s length to the template?

{{json.length}}