Encountering an issue with Angular2 RC5 that seems to be causing an infinite loop problem.
The app.component, which is bootstrapped by the app.module, appears quite simple:
@Component({
selector: 'my-app',
template: `TEST`
})
export class AppComponent implements OnInit {
constructor() {
console.log("APP LOG!");
}
ngOnInit() {
console.log("APP INIT LOG!");
}
}
Everything works fine when the template is coded inside the component itself. But transferring it into a separate html file and including it via
templateUrl: 'app.component.html'
results in the constructor being called repeatedly without ever reaching the ngOnInit function. This issue was not present in RC4 without ngModules.
The corresponding ngModule structure is also basic:
@NgModule({
imports: [
BrowserModule
],
declarations: [
AppComponent
],
bootstrap: [AppComponent]
})
export class AppModule {}
Meteor is being used for compilation, utilizing the Meteor angular2-compiler.
If you have any insights or suggestions, they would be greatly appreciated!