Created
May 3, 2017 07:24
-
-
Save cod3cow/dbbc8275697e277e160ed7d293ebdc6f to your computer and use it in GitHub Desktop.
using constants in angular 2
This file contains hidden or 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
'use strict'; | |
export const dist = '../path/to/dist/'; | |
export const version: string = '0.0.1'; |
This file contains hidden or 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 * as AppConst from '../app.const'; | |
@Injectable() | |
export class AppService { | |
constructor ( | |
) { | |
console.log('dist path', AppConst.dist ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment