Skip to content

Instantly share code, notes, and snippets.

@avatsaev
Created February 10, 2017 01:17
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 avatsaev/d4924ac07ddc4458a5cff5a80bc34b30 to your computer and use it in GitHub Desktop.
Save avatsaev/d4924ac07ddc4458a5cff5a80bc34b30 to your computer and use it in GitHub Desktop.
import {Component, OnInit, ViewChild} from '@angular/core';
import {AuthDialogComponent} from "../auth-dialog/auth-dialog.component";
import {Angular2TokenService} from "angular2-token";
@Component({
selector: 'app-toolbar',
templateUrl: './toolbar.component.html',
styleUrls: ['./toolbar.component.sass']
})
export class ToolbarComponent implements OnInit {
@ViewChild('authDialog') authDialog: AuthDialogComponent;
constructor(public tokenAuthService:Angular2TokenService) { }
ngOnInit() {
}
presentAuthDialog(mode?: 'login'| 'register'){
this.authDialog.openDialog(mode);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment