UNPKG

2.31 kBJavaScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { AnimationQueue } from './animation/animation_queue';
9import { ApplicationInitStatus } from './application_init';
10import { ApplicationRef, ApplicationRef_ } from './application_ref';
11import { APP_ID_RANDOM_PROVIDER } from './application_tokens';
12import { IterableDiffers, KeyValueDiffers, defaultIterableDiffers, defaultKeyValueDiffers } from './change_detection/change_detection';
13import { LOCALE_ID } from './i18n/tokens';
14import { Compiler } from './linker/compiler';
15import { ViewUtils } from './linker/view_utils';
16import { NgModule } from './metadata';
17/**
18 * @return {?}
19 */
20export function _iterableDiffersFactory() {
21 return defaultIterableDiffers;
22}
23/**
24 * @return {?}
25 */
26export function _keyValueDiffersFactory() {
27 return defaultKeyValueDiffers;
28}
29/**
30 * This module includes the providers of @angular/core that are needed
31 * to bootstrap components via `ApplicationRef`.
32 * *
33 */
34export var ApplicationModule = (function () {
35 function ApplicationModule() {
36 }
37 ApplicationModule.decorators = [
38 { type: NgModule, args: [{
39 providers: [
40 ApplicationRef_,
41 { provide: ApplicationRef, useExisting: ApplicationRef_ },
42 ApplicationInitStatus,
43 Compiler,
44 APP_ID_RANDOM_PROVIDER,
45 ViewUtils,
46 AnimationQueue,
47 { provide: IterableDiffers, useFactory: _iterableDiffersFactory },
48 { provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory },
49 { provide: LOCALE_ID, useValue: 'en-US' },
50 ]
51 },] },
52 ];
53 /** @nocollapse */
54 ApplicationModule.ctorParameters = function () { return []; };
55 return ApplicationModule;
56}());
57function ApplicationModule_tsickle_Closure_declarations() {
58 /** @type {?} */
59 ApplicationModule.decorators;
60 /**
61 * @nocollapse
62 * @type {?}
63 */
64 ApplicationModule.ctorParameters;
65}
66//# sourceMappingURL=application_module.js.map
\No newline at end of file