2016-01-11 13:49:12 +01:00
|
|
|
//#docregion
|
|
|
|
|
// #docregion token
|
2016-04-27 11:28:22 -07:00
|
|
|
import {OpaqueToken} from '@angular/core';
|
2016-01-11 13:49:12 +01:00
|
|
|
|
|
|
|
|
export let APP_CONFIG = new OpaqueToken('app.config');
|
|
|
|
|
// #enddocregion token
|
|
|
|
|
|
|
|
|
|
//#docregion config
|
|
|
|
|
export interface Config {
|
|
|
|
|
apiEndpoint: string,
|
|
|
|
|
title: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const CONFIG:Config = {
|
|
|
|
|
apiEndpoint: 'api.heroes.com',
|
|
|
|
|
title: 'Dependency Injection'
|
|
|
|
|
};
|
|
|
|
|
//#enddocregion config
|