Nastaviť stav smerovača aktívny v písacom stroji angular
Príklady kódu
16
0
uhlová navigácia pomocou komponentu
import {Router} from '@angular/router'; // import router from angular router
export class Component{ // Example component..
constructor(private route:Router){}
go(){
this.route.navigate(['/page']); // navigate to other page
}
}