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