| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @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
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-09 13:04:18 -08:00
										 |  |  | import {AnimationQueue} from './animation/animation_queue'; | 
					
						
							| 
									
										
										
										
											2016-08-02 07:54:14 -07:00
										 |  |  | import {ApplicationInitStatus} from './application_init'; | 
					
						
							| 
									
										
										
										
											2016-08-11 15:24:35 -07:00
										 |  |  | import {ApplicationRef, ApplicationRef_} from './application_ref'; | 
					
						
							| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  | import {APP_ID_RANDOM_PROVIDER} from './application_tokens'; | 
					
						
							|  |  |  | import {IterableDiffers, KeyValueDiffers, defaultIterableDiffers, defaultKeyValueDiffers} from './change_detection/change_detection'; | 
					
						
							| 
									
										
										
										
											2017-01-05 20:24:37 +03:00
										 |  |  | import {Inject, Optional, SkipSelf} from './di/metadata'; | 
					
						
							| 
									
										
										
										
											2016-08-12 16:52:55 -07:00
										 |  |  | import {LOCALE_ID} from './i18n/tokens'; | 
					
						
							| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  | 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; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-05 20:24:37 +03:00
										 |  |  | export function _localeFactory(locale?: string): string { | 
					
						
							|  |  |  |   return locale || 'en-US'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * This module includes the providers of @angular/core that are needed | 
					
						
							|  |  |  |  * to bootstrap components via `ApplicationRef`. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @experimental | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							|  |  |  |   providers: [ | 
					
						
							|  |  |  |     ApplicationRef_, | 
					
						
							|  |  |  |     {provide: ApplicationRef, useExisting: ApplicationRef_}, | 
					
						
							| 
									
										
										
										
											2016-08-02 07:54:14 -07:00
										 |  |  |     ApplicationInitStatus, | 
					
						
							| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  |     Compiler, | 
					
						
							|  |  |  |     APP_ID_RANDOM_PROVIDER, | 
					
						
							|  |  |  |     ViewUtils, | 
					
						
							| 
									
										
										
										
											2016-12-09 13:04:18 -08:00
										 |  |  |     AnimationQueue, | 
					
						
							| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  |     {provide: IterableDiffers, useFactory: _iterableDiffersFactory}, | 
					
						
							|  |  |  |     {provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory}, | 
					
						
							| 
									
										
										
										
											2017-01-05 20:24:37 +03:00
										 |  |  |     { | 
					
						
							|  |  |  |       provide: LOCALE_ID, | 
					
						
							|  |  |  |       useFactory: _localeFactory, | 
					
						
							|  |  |  |       deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]] | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2016-07-18 03:50:31 -07:00
										 |  |  |   ] | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class ApplicationModule { | 
					
						
							|  |  |  | } |