2016-01-11 07:49:12 -05:00
|
|
|
// #docregion token
|
2016-05-03 08:06:32 -04:00
|
|
|
import { OpaqueToken } from '@angular/core';
|
2016-01-11 07:49:12 -05:00
|
|
|
|
|
|
|
export let APP_CONFIG = new OpaqueToken('app.config');
|
|
|
|
// #enddocregion token
|
|
|
|
|
2016-06-07 19:06:25 -04:00
|
|
|
// #docregion config
|
2016-06-03 14:16:46 -04:00
|
|
|
export interface AppConfig {
|
2016-06-07 19:06:25 -04:00
|
|
|
apiEndpoint: string;
|
|
|
|
title: string;
|
2016-01-11 07:49:12 -05:00
|
|
|
}
|
|
|
|
|
2016-06-03 14:16:46 -04:00
|
|
|
export const HERO_DI_CONFIG: AppConfig = {
|
2016-01-11 07:49:12 -05:00
|
|
|
apiEndpoint: 'api.heroes.com',
|
|
|
|
title: 'Dependency Injection'
|
|
|
|
};
|