Permalink
Browse files

Step 19.17: Add auth logic to the App component

  • Loading branch information...
dotansimha authored and DAB0mB committed Sep 27, 2016
1 parent 935cce1 commit 22919dd7c28a14bd095638e2b65e4e6de4e161ac
Showing with 11 additions and 1 deletion.
  1. +11 −1 client/imports/app/app.component.ts
@@ -2,10 +2,20 @@ import { Component } from '@angular/core';
import template from './app.component.html';
import style from './app.component.scss';
import {InjectUser} from "angular2-meteor-accounts-ui";
@Component({
selector: 'app',
template,
styles: [ style ]
})
export class AppComponent {}
@InjectUser('user')
export class AppComponent {
constructor() {
}
logout() {
Meteor.logout();
}
}

0 comments on commit 22919dd

Please sign in to comment.