Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic3 / Angular2 view render multiple time

$
0
0

@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.html i call this function by interpolation binding:

{{printLog()}}
It is my whole code. In the console i see the log:

As we can see the printLog function were called 9 times. I can't understand why. Can someone tell me why and how it work?
Many thanks!

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>