58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * @license
 | |
|  * Copyright Google Inc. All Rights Reserved.
 | |
|  *
 | |
|  * Use of this source code is governed by an MIT-style license that can be
 | |
|  * found in the LICENSE file at https://angular.io/license
 | |
|  */
 | |
| 
 | |
| import {AnimationQueue} from './animation/animation_queue';
 | |
| import {ApplicationInitStatus} from './application_init';
 | |
| import {ApplicationRef, ApplicationRef_} from './application_ref';
 | |
| import {APP_ID_RANDOM_PROVIDER} from './application_tokens';
 | |
| import {IterableDiffers, KeyValueDiffers, defaultIterableDiffers, defaultKeyValueDiffers} from './change_detection/change_detection';
 | |
| import {Inject, Optional, SkipSelf} from './di/metadata';
 | |
| import {LOCALE_ID} from './i18n/tokens';
 | |
| import {Compiler} from './linker/compiler';
 | |
| import {ViewUtils} from './linker/view_utils';
 | |
| import {NgModule} from './metadata';
 | |
| 
 | |
| export function _iterableDiffersFactory() {
 | |
|   return defaultIterableDiffers;
 | |
| }
 | |
| 
 | |
| export function _keyValueDiffersFactory() {
 | |
|   return defaultKeyValueDiffers;
 | |
| }
 | |
| 
 | |
| export function _localeFactory(locale?: string): string {
 | |
|   return locale || 'en-US';
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * This module includes the providers of @angular/core that are needed
 | |
|  * to bootstrap components via `ApplicationRef`.
 | |
|  *
 | |
|  * @experimental
 | |
|  */
 | |
| @NgModule({
 | |
|   providers: [
 | |
|     ApplicationRef_,
 | |
|     {provide: ApplicationRef, useExisting: ApplicationRef_},
 | |
|     ApplicationInitStatus,
 | |
|     Compiler,
 | |
|     APP_ID_RANDOM_PROVIDER,
 | |
|     ViewUtils,
 | |
|     AnimationQueue,
 | |
|     {provide: IterableDiffers, useFactory: _iterableDiffersFactory},
 | |
|     {provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory},
 | |
|     {
 | |
|       provide: LOCALE_ID,
 | |
|       useFactory: _localeFactory,
 | |
|       deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]]
 | |
|     },
 | |
|   ]
 | |
| })
 | |
| export class ApplicationModule {
 | |
| }
 |