angularjs - Why a method in expression is called two times in angular.js -


i want know why method called 2 times while used in angularjs binding expression.

you can find code here @ jsbin

why callme() method called 2 times. found same question posted not satisfactory answer. , if want avoid called 2 times how it.

you binding function expression

<p>{{callme()}}</p> 

that's why it's called many times, because runs everytime when angularjs calls digest()... here picture how digest work maybe helps better...

enter image description here


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -