2016-07-18 06:50:31 -04: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 16:04:18 -05:00
|
|
|
import {AnimationQueue} from './animation/animation_queue';
|
2016-08-02 10:54:14 -04:00
|
|
|
import {ApplicationInitStatus} from './application_init';
|
2016-08-11 18:24:35 -04:00
|
|
|
import {ApplicationRef, ApplicationRef_} from './application_ref';
|
2016-07-18 06:50:31 -04:00
|
|
|
import {APP_ID_RANDOM_PROVIDER} from './application_tokens';
|
|
|
|
import {IterableDiffers, KeyValueDiffers, defaultIterableDiffers, defaultKeyValueDiffers} from './change_detection/change_detection';
|
2016-08-12 19:52:55 -04:00
|
|
|
import {LOCALE_ID} from './i18n/tokens';
|
2016-07-18 06:50:31 -04: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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 10:54:14 -04:00
|
|
|
ApplicationInitStatus,
|
2016-07-18 06:50:31 -04:00
|
|
|
Compiler,
|
|
|
|
APP_ID_RANDOM_PROVIDER,
|
|
|
|
ViewUtils,
|
2016-12-09 16:04:18 -05:00
|
|
|
AnimationQueue,
|
2016-07-18 06:50:31 -04:00
|
|
|
{provide: IterableDiffers, useFactory: _iterableDiffersFactory},
|
|
|
|
{provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory},
|
2016-08-26 13:30:10 -04:00
|
|
|
{provide: LOCALE_ID, useValue: 'en-US'},
|
2016-07-18 06:50:31 -04:00
|
|
|
]
|
|
|
|
})
|
|
|
|
export class ApplicationModule {
|
|
|
|
}
|