Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created May 19, 2018 12:56
Show Gist options
  • Save alexzuza/ba4dc567b49246f46e21ee1c35890db2 to your computer and use it in GitHub Desktop.
Save alexzuza/ba4dc567b49246f46e21ee1c35890db2 to your computer and use it in GitHub Desktop.
One time ivy
var _c0 = ["color", "#efefef"];
AppComponent.ngComponentDef = i0.ɵdefineComponent({
type: AppComponent,
selectors: [["my-app"]],
...
template: function AppComponent_Template(rf, ctx) {
// create mode
if (rf & 1) {
i0.ɵE(0, "child", _c0); <========== used only in create mode
i0.ɵe();
}
if (rf & 2) {
...
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment