4

I'm debugging an angular 7 app and i need to switch routes from the browser console. I was able to get into the Router service as explained in this answer however when i do

router.navigate(['customer']);

I get a warning saying:

Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?

I've already tried to do the following but it didn't make any difference:

Zone.current.run(() => {
  router.navigate(['customer']);
});

0 Answers0