0

I have project in which some screens are in angular 1 and some are in angular 2 .When i have some unsaved data and i try to navigate to Angular 2 pages I need to trigger a alert or may be a console.log . how can i achieve this and also vice versa ?

I have tried $routeChangeStart and $locationChangeStart these events are not getting fired when I move from Angular 1 pages to Angular 2 pages .They work fine when i navigate from Angular 1 to Angular 1 pages with unsaved data

Any suggestions

Thanks

Teja Reddy
  • 99
  • 1
  • 2
  • 9

0 Answers0