constructor(router: Router) {
router.subscribe((url) => console.log(url));
}
constructor(router: Router) {
router.subscribe((url) => {
// Current URL
router.recognize(url).then((instruction) => {
console.log(instruction); // Current instruction
});
});
}