17 lines
366 B
TypeScript
Raw Normal View History

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