Last active
April 1, 2018 07:30
-
-
Save alexzuza/d63046b569dce86eb5ec023ca49619ad to your computer and use it in GitHub Desktop.
ViewEngine2-6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function anonymous(jit_StaticNodeDebugInfo0,jit_createRenderComponentType1, | |
jit_22,jit_DebugAppView3,jit_14,jit_CD_INIT_VALUE5, | |
jit_createRenderElement6,jit__object_Object_7,jit_inlineInterpolate8,jit_checkBinding9 | |
) { | |
var styles_App = []; | |
var nodeDebugInfos_App0 = [ | |
new jit_StaticNodeDebugInfo0([],null,{}), | |
new jit_StaticNodeDebugInfo0([],null,{}), | |
new jit_StaticNodeDebugInfo0([],null,{}), | |
new jit_StaticNodeDebugInfo0([],null,{}), | |
new jit_StaticNodeDebugInfo0([],null,{}), | |
new jit_StaticNodeDebugInfo0([],null,{}), | |
new jit_StaticNodeDebugInfo0([],null,{}) | |
] | |
; | |
var renderType_App = jit_createRenderComponentType1('./App class App - inline template',0,jit_22,styles_App,{}); | |
function View_App0(viewUtils,parentView,parentIndex,parentElement) { | |
var self = this; | |
jit_DebugAppView3.call(this, View_App0,renderType_App,jit_14,viewUtils, | |
parentView,parentIndex,parentElement,jit_22,nodeDebugInfos_App0); | |
self._expr_7 = jit_CD_INIT_VALUE5; | |
} | |
View_App0.prototype = Object.create(jit_DebugAppView3.prototype); | |
View_App0.prototype.createInternal = function(rootSelector) { | |
var self = this; | |
var parentRenderNode = self.renderer.createViewRoot(self.parentElement); | |
self._text_0 = self.renderer.createText(parentRenderNode,'\n ',self.debug(0,0,0)); | |
self._el_1 = jit_createRenderElement6(self.renderer,parentRenderNode,'div',jit__object_Object_7,self.debug(1,1,4)); | |
self._text_2 = self.renderer.createText(self._el_1,'\n ',self.debug(2,1,9)); | |
self._el_3 = jit_createRenderElement6(self.renderer,self._el_1,'h2',jit__object_Object_7,self.debug(3,2,6)); | |
self._text_4 = self.renderer.createText(self._el_3,'',self.debug(4,2,10)); | |
self._text_5 = self.renderer.createText(self._el_1,'\n ',self.debug(5,2,29)); | |
self._text_6 = self.renderer.createText(parentRenderNode,'\n ',self.debug(6,3,10)); | |
self.init(null,(self.renderer.directRenderer? null: [ | |
self._text_0, | |
self._el_1, | |
self._text_2, | |
self._el_3, | |
self._text_4, | |
self._text_5, | |
self._text_6 | |
] | |
),null); | |
return null; | |
}; | |
View_App0.prototype.detectChangesInternal = function(throwOnChange) { | |
var self = this; | |
self.debug(4,2,10); | |
var currVal_7 = jit_inlineInterpolate8(1,'Hello ',self.context.name,''); | |
if (jit_checkBinding9(throwOnChange,self._expr_7,currVal_7)) { | |
self.renderer.setText(self._text_4,currVal_7); | |
self._expr_7 = currVal_7; | |
} | |
}; | |
return View_App0 | |
}) | |
// ViewEngine | |
(function anonymous(jit_createRendererType2_0,jit_viewDef_1,jit_textDef_2,jit_elementDef_3) { | |
var styles_App = []; | |
var RenderType_App = jit_createRendererType2_0({encapsulation:2,styles:styles_App, | |
data:{}}); | |
function View_App_0(_l) { | |
return jit_viewDef_1(0,[ | |
(_l()(),jit_textDef_2(-1,null,['\n '])), | |
(_l()(),jit_elementDef_3(1,0,null,null,4,'div',[],null,null,null,null,null)), | |
(_l()(),jit_textDef_2(-1,null,['\n '])), | |
(_l()(),jit_elementDef_3(3,0,null,null,1,'h2',[],null,null,null,null,null)), | |
(_l()(),jit_textDef_2(4,null,['Hello ',''])), | |
(_l()(),jit_textDef_2(-1,null,['\n '])), | |
(_l()(),jit_textDef_2(-1,null,['\n '])) | |
], | |
null, | |
function(_ck, _v) { | |
var _co = _v.component; | |
var currVal_0 = _co.name; | |
_ck(_v,4,0,currVal_0); | |
}); | |
} | |
return {RenderType_App:RenderType_App,View_App_0:View_App_0}; | |
}) | |
// ivy | |
(function anonymous(i0) { | |
var App = (function () { | |
function App() {} | |
App.ngComponentDef = i0.ɵdefineComponent({ | |
type: App, | |
selectors: [['my-app']], | |
factory: function App_Factory() { | |
return new App(); | |
}, | |
template: function App_Template(ctx, cm) { | |
if (cm) { | |
i0.ɵE(0, 'div'); | |
i0.ɵE(1, 'h2'); | |
i0.ɵT(2); | |
i0.ɵe(); | |
i0.ɵe(); | |
} | |
i0.ɵt(2, i0.ɵi1('Hello ', ctx.name, '')); | |
} | |
}); | |
return App; | |
}()); | |
i0.ɵrenderComponent(App); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment