Created
June 25, 2016 08:53
-
-
Save sonicoder86/1a7ce498b22c1a8df8e2f4ba04693355 to your computer and use it in GitHub Desktop.
Authentication in Angular 2 - part 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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