SHARE
TWEET

Untitled

a guest Feb 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top