2017-02-22 18:13:21 +00:00
|
|
|
// #docregion token
|
2017-04-01 01:57:13 +02:00
|
|
|
import { InjectionToken } from '@angular/core';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
2017-04-01 01:57:13 +02:00
|
|
|
export let APP_CONFIG = new InjectionToken<AppConfig>('app.config');
|
2017-02-22 18:13:21 +00:00
|
|
|
// #enddocregion token
|
|
|
|
|
|
|
|
|
|
// #docregion config
|
|
|
|
|
export interface AppConfig {
|
|
|
|
|
apiEndpoint: string;
|
|
|
|
|
title: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const HERO_DI_CONFIG: AppConfig = {
|
|
|
|
|
apiEndpoint: 'api.heroes.com',
|
|
|
|
|
title: 'Dependency Injection'
|
|
|
|
|
};
|