Observer Property in component


#1

Hi there! I have a component, that probem https://jsfiddle.net/4tnkdxp9/2/

how set property title when observe other proprety, and display title in view.


#2

Hi.

avoid use set(“title”), use a computed value chain that require other attribute.

//  this.set('titles', titles);
titles: Ember.computed("someProper", function() {

https://guides.emberjs.com/v2.6.0/object-model/computed-properties/