Skip to content

Instantly share code, notes, and snippets.

@schmidt1024
Created May 3, 2017 07:24
Show Gist options
  • Save schmidt1024/dbbc8275697e277e160ed7d293ebdc6f to your computer and use it in GitHub Desktop.
Save schmidt1024/dbbc8275697e277e160ed7d293ebdc6f to your computer and use it in GitHub Desktop.
using constants in angular 2
'use strict';
export const dist = '../path/to/dist/';
export const version: string = '0.0.1';
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