below appcomponent code:
import { component } '@angular/core'; @component({ selector: 'demo-app', template: `<h1>angular 2 app</h1> <a [routerlink]="['/']">home</a> <a [routerlink]="['/about']">about</a> <a [routerlink] = "['/login']">sign in</a> <div class="outer-outlet"> <router-outlet></router-outlet> </div> ` }) export class appcomponent { }
i tried find in google found router testing in lower angular version <5. appreciated.
Comments
Post a Comment