Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- template: `
- <h1>Angular Router</h1>
- <nav>
- <a routerLink="/crisis-center" routerLinkActive="active">Crisis Center</a>
- <a routerLink="/heroes" routerLinkActive="active">Heroes</a>
- </nav>
- <router-outlet></router-outlet>
- `,
- styles: []
- })
- export class AppComponent {
- title = 'app';
- }
Add Comment
Please, Sign In to add comment