I am building an Angular 2 app with version beta.8. In this app i have a component which implements OnInit. In this component i have the function ngOnInit, but the n
I guess it's a zone issue.
Inject NgZone (import from angular2/core
NgZone
angular2/core
constructor(private zone:NgZone) {} this._browser.getStorageValue('api_key', api_key => { if (api_key) { this.zone.run(() => this._browser.gotoMain()); } })