Last active
February 9, 2017 17:20
-
-
Save avatsaev/62d554b4418249c4e62fb428b4371e43 to your computer and use it in GitHub Desktop.
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
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