@duannx wrote:
I created a new ionic 3 project. In my
HomePage, i have only one varible and one function:count = 0; printLog() { console.log("count", ++this.count); }In template
home.htmli call this function by interpolation binding:
{{printLog()}}
It is my whole code. In the console i see the log:
As we can see theprintLogfunction were called 9 times. I can't understand why. Can someone tell me why and how it work?
Many thanks!
Posts: 6
Participants: 2