Here the statements in test method is called multiple times. Why is this happening? Is DOM is recreated by AngularJS2 multiple times?
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<div>Method Call {{test()}}</div>>`
})
export class AppComponent {
name = 'Angular';
test() {
console.log("Test is called");
}
}