Skip to content

Instantly share code, notes, and snippets.

@robwormald
Created Apr 21, 2017
Embed
What would you like to do?
import {NgModule, Component} from '@angular/core'
import {BrowserModule} from '@angular/platform-browser'
@Component({
selector: 'demo-app',
template: `
<h1>hello {{name}}</h1>
`
})
export class DemoApp {
name: string = 'rob'
}
@NgModule({
imports: [
BrowserModule
],
declarations: [ DemoApp ],
bootstrap: [DemoApp]
})
export class AppModule {}
/**
* @fileoverview This file is generated by the Angular template compiler.
* Do not edit.
* @suppress {suspiciousCode,uselessCode,missingProperties}
*/
/* tslint:disable */
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import * as import0 from '@angular/core';
import * as import1 from './app.module';
import * as import2 from '@angular/common';
import * as import3 from '@angular/platform-browser';
var AppModuleInjector = (function (_super) {
__extends(AppModuleInjector, _super);
function AppModuleInjector(parent) {
return _super.call(this, parent, [DemoAppNgFactory], [DemoAppNgFactory]) || this;
}
Object.defineProperty(AppModuleInjector.prototype, "_LOCALE_ID_9", {
get: function () {
if ((this.__LOCALE_ID_9 == null)) {
(this.__LOCALE_ID_9 = import0.ɵn(this.parent.get(import0.LOCALE_ID, null)));
}
return this.__LOCALE_ID_9;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_NgLocalization_10", {
get: function () {
if ((this.__NgLocalization_10 == null)) {
(this.__NgLocalization_10 = new import2.NgLocaleLocalization(this._LOCALE_ID_9));
}
return this.__NgLocalization_10;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_Compiler_11", {
get: function () {
if ((this.__Compiler_11 == null)) {
(this.__Compiler_11 = new import0.Compiler());
}
return this.__Compiler_11;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_APP_ID_12", {
get: function () {
if ((this.__APP_ID_12 == null)) {
(this.__APP_ID_12 = import0.ɵg());
}
return this.__APP_ID_12;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_IterableDiffers_13", {
get: function () {
if ((this.__IterableDiffers_13 == null)) {
(this.__IterableDiffers_13 = import0.ɵl());
}
return this.__IterableDiffers_13;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_KeyValueDiffers_14", {
get: function () {
if ((this.__KeyValueDiffers_14 == null)) {
(this.__KeyValueDiffers_14 = import0.ɵm());
}
return this.__KeyValueDiffers_14;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_DomSanitizer_15", {
get: function () {
if ((this.__DomSanitizer_15 == null)) {
(this.__DomSanitizer_15 = new import3.ɵe(this.parent.get(import3.DOCUMENT)));
}
return this.__DomSanitizer_15;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_Sanitizer_16", {
get: function () {
if ((this.__Sanitizer_16 == null)) {
(this.__Sanitizer_16 = this._DomSanitizer_15);
}
return this.__Sanitizer_16;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_HAMMER_GESTURE_CONFIG_17", {
get: function () {
if ((this.__HAMMER_GESTURE_CONFIG_17 == null)) {
(this.__HAMMER_GESTURE_CONFIG_17 = new import3.HammerGestureConfig());
}
return this.__HAMMER_GESTURE_CONFIG_17;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_EVENT_MANAGER_PLUGINS_18", {
get: function () {
if ((this.__EVENT_MANAGER_PLUGINS_18 == null)) {
(this.__EVENT_MANAGER_PLUGINS_18 = [
new import3.ɵDomEventsPlugin(this.parent.get(import3.DOCUMENT)),
new import3.ɵKeyEventsPlugin(this.parent.get(import3.DOCUMENT)),
new import3.ɵHammerGesturesPlugin(this.parent.get(import3.DOCUMENT), this._HAMMER_GESTURE_CONFIG_17)
]);
}
return this.__EVENT_MANAGER_PLUGINS_18;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_EventManager_19", {
get: function () {
if ((this.__EventManager_19 == null)) {
(this.__EventManager_19 = new import3.EventManager(this._EVENT_MANAGER_PLUGINS_18, this.parent.get(import0.NgZone)));
}
return this.__EventManager_19;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_\u0275DomSharedStylesHost_20", {
get: function () {
if ((this.__ɵDomSharedStylesHost_20 == null)) {
(this.__ɵDomSharedStylesHost_20 = new import3.ɵDomSharedStylesHost(this.parent.get(import3.DOCUMENT)));
}
return this.__ɵDomSharedStylesHost_20;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_\u0275DomRendererFactory2_21", {
get: function () {
if ((this.__ɵDomRendererFactory2_21 == null)) {
(this.__ɵDomRendererFactory2_21 = new import3.ɵDomRendererFactory2(this._EventManager_19, this._ɵDomSharedStylesHost_20));
}
return this.__ɵDomRendererFactory2_21;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_RendererFactory2_22", {
get: function () {
if ((this.__RendererFactory2_22 == null)) {
(this.__RendererFactory2_22 = this._ɵDomRendererFactory2_21);
}
return this.__RendererFactory2_22;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_\u0275SharedStylesHost_23", {
get: function () {
if ((this.__ɵSharedStylesHost_23 == null)) {
(this.__ɵSharedStylesHost_23 = this._ɵDomSharedStylesHost_20);
}
return this.__ɵSharedStylesHost_23;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_Testability_24", {
get: function () {
if ((this.__Testability_24 == null)) {
(this.__Testability_24 = new import0.Testability(this.parent.get(import0.NgZone)));
}
return this.__Testability_24;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_Meta_25", {
get: function () {
if ((this.__Meta_25 == null)) {
(this.__Meta_25 = new import3.Meta(this.parent.get(import3.DOCUMENT)));
}
return this.__Meta_25;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppModuleInjector.prototype, "_Title_26", {
get: function () {
if ((this.__Title_26 == null)) {
(this.__Title_26 = new import3.Title(this.parent.get(import3.DOCUMENT)));
}
return this.__Title_26;
},
enumerable: true,
configurable: true
});
AppModuleInjector.prototype.createInternal = function () {
this._CommonModule_0 = new import2.CommonModule();
this._ErrorHandler_1 = import3.ɵa();
this._APP_INITIALIZER_2 = [
import0.ɵo,
import3.ɵc(this.parent.get(import3.NgProbeToken, null), this.parent.get(import0.NgProbeToken, null))
];
this._ApplicationInitStatus_3 = new import0.ApplicationInitStatus(this._APP_INITIALIZER_2);
this._ɵf_4 = new import0.ɵf(this.parent.get(import0.NgZone), this.parent.get(import0.ɵConsole), this, this._ErrorHandler_1, this.componentFactoryResolver, this._ApplicationInitStatus_3);
this._ApplicationRef_5 = this._ɵf_4;
this._ApplicationModule_6 = new import0.ApplicationModule(this._ApplicationRef_5);
this._BrowserModule_7 = new import3.BrowserModule(this.parent.get(import3.BrowserModule, null));
this._AppModule_8 = new import1.AppModule();
return this._AppModule_8;
};
AppModuleInjector.prototype.getInternal = function (token, notFoundResult) {
if ((token === import2.CommonModule)) {
return this._CommonModule_0;
}
if ((token === import0.ErrorHandler)) {
return this._ErrorHandler_1;
}
if ((token === import0.APP_INITIALIZER)) {
return this._APP_INITIALIZER_2;
}
if ((token === import0.ApplicationInitStatus)) {
return this._ApplicationInitStatus_3;
}
if ((token === import0.ɵf)) {
return this._ɵf_4;
}
if ((token === import0.ApplicationRef)) {
return this._ApplicationRef_5;
}
if ((token === import0.ApplicationModule)) {
return this._ApplicationModule_6;
}
if ((token === import3.BrowserModule)) {
return this._BrowserModule_7;
}
if ((token === import1.AppModule)) {
return this._AppModule_8;
}
if ((token === import0.LOCALE_ID)) {
return this._LOCALE_ID_9;
}
if ((token === import2.NgLocalization)) {
return this._NgLocalization_10;
}
if ((token === import0.Compiler)) {
return this._Compiler_11;
}
if ((token === import0.APP_ID)) {
return this._APP_ID_12;
}
if ((token === import0.IterableDiffers)) {
return this._IterableDiffers_13;
}
if ((token === import0.KeyValueDiffers)) {
return this._KeyValueDiffers_14;
}
if ((token === import3.DomSanitizer)) {
return this._DomSanitizer_15;
}
if ((token === import0.Sanitizer)) {
return this._Sanitizer_16;
}
if ((token === import3.HAMMER_GESTURE_CONFIG)) {
return this._HAMMER_GESTURE_CONFIG_17;
}
if ((token === import3.EVENT_MANAGER_PLUGINS)) {
return this._EVENT_MANAGER_PLUGINS_18;
}
if ((token === import3.EventManager)) {
return this._EventManager_19;
}
if ((token === import3.ɵDomSharedStylesHost)) {
return this._ɵDomSharedStylesHost_20;
}
if ((token === import3.ɵDomRendererFactory2)) {
return this._ɵDomRendererFactory2_21;
}
if ((token === import0.RendererFactory2)) {
return this._RendererFactory2_22;
}
if ((token === import3.ɵSharedStylesHost)) {
return this._ɵSharedStylesHost_23;
}
if ((token === import0.Testability)) {
return this._Testability_24;
}
if ((token === import3.Meta)) {
return this._Meta_25;
}
if ((token === import3.Title)) {
return this._Title_26;
}
return notFoundResult;
};
AppModuleInjector.prototype.destroyInternal = function () {
this._ɵf_4.ngOnDestroy();
(this.__ɵDomSharedStylesHost_20 && this._ɵDomSharedStylesHost_20.ngOnDestroy());
};
return AppModuleInjector;
}(import0.ɵNgModuleInjector));
export var AppModuleNgFactory = new import0.NgModuleFactory(AppModuleInjector, import1.AppModule);
var styles_DemoApp = [];
export var RenderType_DemoApp = import0.ɵcrt({
encapsulation: 2,
styles: styles_DemoApp,
data: {}
});
export function View_DemoApp_0(l) {
return import0.ɵvid(0, [
(l()(), import0.ɵted(null, ['\n '])),
(l()(), import0.ɵeld(0, null, null, 1, 'h1', [], null, null, null, null, null)),
(l()(), import0.ɵted(null, [
'hello ',
''
])),
(l()(), import0.ɵted(null, ['\n ']))
], null, function (ck, v) {
var co = v.component;
var currVal_0 = co.name;
ck(v, 2, 0, currVal_0);
});
}
function View_DemoApp_Host_0(l) {
return import0.ɵvid(0, [
(l()(), import0.ɵeld(0, null, null, 1, 'demo-app', [], null, null, null, View_DemoApp_0, RenderType_DemoApp)),
import0.ɵdid(24576, null, 0, import1.DemoApp, [], null, null)
], null, null);
}
export var DemoAppNgFactory = import0.ɵccf('demo-app', import1.DemoApp, View_DemoApp_Host_0, {}, {}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment