Sorry for basic question, I am trying to understand the angular2 flow using basic example.
import { Component } from '@angular/core';
@Component({
selector:'my-app',
template:'Test {{ getVal() }}'
})
export class AppComponent{
getVal():void{
console.log("demo text")
}
}
After running this example, "demo text" is visible in console 4times, why is it so ? Thanks.
getVal()
– Porphyroid