UNPKG

2.69 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 { Inject, Optional, SkipSelf } from './di/metadata';
14import { LOCALE_ID } from './i18n/tokens';
15import { Compiler } from './linker/compiler';
16import { ViewUtils } from './linker/view_utils';
17import { NgModule } from './metadata';
18/**
19 * @return {?}
20 */
21export function _iterableDiffersFactory() {
22 return defaultIterableDiffers;
23}
24/**
25 * @return {?}
26 */
27export function _keyValueDiffersFactory() {
28 return defaultKeyValueDiffers;
29}
30/**
31 * @param {?=} locale
32 * @return {?}
33 */
34export function _localeFactory(locale) {
35 return locale || 'en-US';
36}
37/**
38 * This module includes the providers of \@angular/core that are needed
39 * to bootstrap components via `ApplicationRef`.
40 *
41 * \@experimental
42 */
43export var ApplicationModule = (function () {
44 function ApplicationModule() {
45 }
46 ApplicationModule.decorators = [
47 { type: NgModule, args: [{
48 providers: [
49 ApplicationRef_,
50 { provide: ApplicationRef, useExisting: ApplicationRef_ },
51 ApplicationInitStatus,
52 Compiler,
53 APP_ID_RANDOM_PROVIDER,
54 ViewUtils,
55 AnimationQueue,
56 { provide: IterableDiffers, useFactory: _iterableDiffersFactory },
57 { provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory },
58 {
59 provide: LOCALE_ID,
60 useFactory: _localeFactory,
61 deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]]
62 },
63 ]
64 },] },
65 ];
66 /** @nocollapse */
67 ApplicationModule.ctorParameters = function () { return []; };
68 return ApplicationModule;
69}());
70function ApplicationModule_tsickle_Closure_declarations() {
71 /** @type {?} */
72 ApplicationModule.decorators;
73 /**
74 * @nocollapse
75 * @type {?}
76 */
77 ApplicationModule.ctorParameters;
78}
79//# sourceMappingURL=application_module.js.map
\No newline at end of file