I have binding to function that looks something like that:
function func() {
this.scopeVar = {
bla: this.isolateScopeVar.bla,
gla: this.isolateScopeVar.gla
}
}
I have this html code:
<span>{{this.scopeVar.bla}}</span>
<span>{{this.scopeVar.gla}}</span>
My problem is that if the this.isolateScopeVar.blaor this.isolateScopeVar.gla has changed the span wouldn't updated without any trigger of func.
I can use this method which will work:
function func() {
return {
bla: this.isolateScopeVar.bla,
gla: this.isolateScopeVar.gla
}
}
<span>{{this.func().bla}}</span>
<span>{{this.func().gla}}</span>
But i think that this isn't the best way to do it.
There is any other way to do that correctly?
this.isolateScopeVar.blais not working?this.?