Sunday, December 24, 2017

When you change components with Angular 4's SPAesque routing will ngOnInit and the constructor get run a second time upon a second visit?

Good news! The answer is yes. The components are not kept alive in state or something janky like that. Every time you revisit one it's like you're a virgin anew.

No comments:

Post a Comment