Skip to content

Instantly share code, notes, and snippets.

@avatsaev
Last active February 9, 2017 17:20
Show Gist options
  • Save avatsaev/62d554b4418249c4e62fb428b4371e43 to your computer and use it in GitHub Desktop.
Save avatsaev/62d554b4418249c4e62fb428b4371e43 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import {Angular2TokenService} from "angular2-token";
import {environment} from "../environments/environment";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.sass']
})
export class AppComponent {
title = 'app works!';
constructor(private authToken: Angular2TokenService){
this.authToken.init(environment.token_auth_config);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment