Skip to content

Instantly share code, notes, and snippets.

@martinakraus
Last active March 28, 2020 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinakraus/150c5dcd53509b6ca875b69262f82d79 to your computer and use it in GitHub Desktop.
Save martinakraus/150c5dcd53509b6ca875b69262f82d79 to your computer and use it in GitHub Desktop.
ivy compiled template creation code
AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(); };
AppComponent.ɵcmp = core.ɵɵdefineComponent({
type: AppComponent,
selectors: [["app-root"]],
decls: 2,
vars: 1,
template: function AppComponent_Template(renderflags, ctx) {
if (renderflags & RenderFlags.INIT) {
core.ɵɵelementStart(0, "div");
core.ɵɵtext(1);
core.ɵɵelementEnd();
}
if (renderflags & RenderFlags.UPDATE) {
core.ɵɵadvance(1);
core.ɵɵtextInterpolate1(" Welcome to ", ctx.title, "!\n");
}
},
styles: [""]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment