Skip to content

Instantly share code, notes, and snippets.

@sonicoder86
Created June 25, 2016 08:53
Show Gist options
  • Save sonicoder86/1a7ce498b22c1a8df8e2f4ba04693355 to your computer and use it in GitHub Desktop.
Save sonicoder86/1a7ce498b22c1a8df8e2f4ba04693355 to your computer and use it in GitHub Desktop.
Authentication in Angular 2 - part 5
// app.component.ts
...
import { LoggedInRouterOutlet } from './logged-in-router-outlet';
@Component({
selector: 'auth-app',
directives: [LoggedInRouterOutlet],
template: `
<div class="container body-container">
<router-outlet></router-outlet>
</div>
`
})
@RouteConfig(...)
export class AppComponent {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment