3
export class AppComponent {
   constructor(){
       //block of statements
   }  
   ngOnInit(){

   }   
}

when i set debugger in constructor and in ngOnInit() then it comes twice in both the methods, I don't know how is happening

amol
  • 1,497
  • 5
  • 17
  • 26
  • please add more details. How do you bootstrap your application? ... add your index.html and your main.ts – mvermand Jul 08 '16 at 06:03
  • That's unusual. You need to provide more information for others to be able to diagnose the problem. How does `bootstrap()` look like? Can you reproduce in a Plunker (template https://angular.io/resources/live-examples/quickstart/ts/plnkr.html) – Günter Zöchbauer Jul 08 '16 at 06:40

0 Answers0