Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created November 14, 2017 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/30a73b0a8549dd201fd1b61addcc97cb to your computer and use it in GitHub Desktop.
Save rahulsahay19/30a73b0a8549dd201fd1b61addcc97cb to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
@Component({
selector: 'inline-component',
template: `
<div class="container">
<p>This component is the default component and was loaded by default.</p>
<strong> <a routerLink="/dynamic" routerLinkActive="active">Load a dynamic component</a>
<a routerLink="/dynamic/movies" routerLinkActive="active">Load Movies</a>
<a routerLink="/dynamic/sample" routerLinkActive="active">Sample Module</a></strong>
</div>`
})
export default class InlineComponent {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment