18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
//#docregion
|
|
// #docregion token
|
|
import { OpaqueToken } from '@angular/core';
|
|
|
|
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
|