Skip to content

Instantly share code, notes, and snippets.

@chidumennamdi
Created August 22, 2018 16:52
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 chidumennamdi/2de82e6be63986167d76da84c2a422b1 to your computer and use it in GitHub Desktop.
Save chidumennamdi/2de82e6be63986167d76da84c2a422b1 to your computer and use it in GitHub Desktop.
<my-i [iHuman]="pHuman"></my-i>
<button (click)="incrId()">Incr. Id</button>
<button (click)="chgName()">Change Name</button>
|
V
export function View_PComponent_0(_l) {
return i1.ɵvid(0, [
(_l()(), i1.ɵeld(0, 0, null, null, 1, "my-i", [], null, null, null, View_IComponent_0, RenderType_IComponent)),
i1.ɵdid(1, 49152, null, 0, i2.IComponent, [],
// bindings
[
iHuman: [0, "iHuman"]
], null),
(_l()(), i1.ɵeld(2, 0, null, null, 1, "button", [], null, [
[null, "click"]
], function(_v, en, $event) {
var ad = true;
var _co = _v.component;
if (("click" === en)) {
var pd_0 = (_co.incrId() !== false);
ad = (pd_0 && ad);
}
return ad;
}, null, null)),
i1.ɵted(-1,["Incr. Id"]),
(_l()(), i1.ɵeld(4, 0, null, null, 1, "button", [], null, [
[null, "click"]
], function(_v, en, $event) {
var ad = true;
var _co = _v.component;
if (("click" === en)) {
var pd_0 = (_co.chgName() !== false);
ad = (pd_0 && ad);
}
return ad;
}, null, null)),
i1.ɵted(-1,["Change Name"])
],
// updateDirectives
function (_ck, _v) {
var _co = _v.component;
var currVal_0 = _co.pHuman;
_ck(_v, 1, 0, currVal_0);
}
, /** updateRenderer */null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment