18 lines
		
	
	
		
			365 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			365 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| //#docregion
 | |
| // #docregion token
 | |
| import {OpaqueToken} from 'angular2/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
 |