Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. // Import the core angular services.
  2. import { Component } from "@angular/core";
  3.  
  4. // ----------------------------------------------------------------------------------- //
  5. // ----------------------------------------------------------------------------------- //
  6.  
  7. @Component({
  8. selector: "my-app",
  9. styleUrls: [ "./app.component.less" ],
  10. template:
  11. `
  12. <ul>
  13. <li><a routerLink="go/boards">GO: Boards</a></li>
  14. <li><a routerLink="go/favorites">GO: Favorites</a></li>
  15. <li><a routerLink="go/most-recent">GO: Most-Recent</a></li>
  16. <li><a routerLink="go/profile">GO: Profile</a></li>
  17. <li><a routerLink="go/prototypes">GO: Prototypes</a></li>
  18. <li><a routerLink="go/comment/111/222">GO: Comment/111/222</a></li>
  19. <li><a routerLink="go/foobar">GO: FooBar</a> (not valid)</li>
  20. </ul>
  21.  
  22. <router-outlet></router-outlet>
  23. `
  24. })
  25. export class AppComponent {
  26. // ...
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement