-
Notifications
You must be signed in to change notification settings - Fork 24.8k
/
if_nested_alias_listeners_template.js
68 lines (66 loc) · 2.74 KB
/
if_nested_alias_listeners_template.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
function MyApp_Conditional_0_Conditional_1_Conditional_1_Template(rf, ctx) {
if (rf & 1) {
const $_r7$ = $r3$.ɵɵgetCurrentView();
$r3$.ɵɵelementStart(0, "button", 0);
$r3$.ɵɵlistener("click", function MyApp_Conditional_0_Conditional_1_Conditional_1_Template_button_click_0_listener() {
const $restoredCtx$ = $r3$.ɵɵrestoreView($_r7$);
const $innermost_r5$ = $restoredCtx$;
const $inner_r3$ = $r3$.ɵɵnextContext();
const $root_r1$ = $r3$.ɵɵnextContext();
const $ctx_r6$ = $r3$.ɵɵnextContext();
return $r3$.ɵɵresetView($ctx_r6$.log($ctx_r6$.value(), $root_r1$, $inner_r3$, $innermost_r5$));
});
$r3$.ɵɵelementEnd();
}
}
function MyApp_Conditional_0_Conditional_1_Template(rf, ctx) {
if (rf & 1) {
const $_r11$ = $r3$.ɵɵgetCurrentView();
$r3$.ɵɵelementStart(0, "button", 0);
$r3$.ɵɵlistener("click", function MyApp_Conditional_0_Conditional_1_Template_button_click_0_listener() {
const $restoredCtx$ = $r3$.ɵɵrestoreView($_r11$);
const $inner_r3$ = $restoredCtx$;
const $root_r1$ = $r3$.ɵɵnextContext();
const $ctx_r10$ = $r3$.ɵɵnextContext();
return $r3$.ɵɵresetView($ctx_r10$.log($ctx_r10$.value(), $root_r1$, $inner_r3$));
});
$r3$.ɵɵelementEnd();
$r3$.ɵɵtemplate(1, MyApp_Conditional_0_Conditional_1_Conditional_1_Template, 1, 0, "button");
}
if (rf & 2) {
const $ctx_r2$ = $r3$.ɵɵnextContext(2);
let MyApp_Conditional_0_Conditional_1_contFlowTmp;
$r3$.ɵɵadvance(1);
$r3$.ɵɵconditional(1, (MyApp_Conditional_0_Conditional_1_contFlowTmp = $ctx_r2$.value()) ? 1 : -1, MyApp_Conditional_0_Conditional_1_contFlowTmp);
}
}
function MyApp_Conditional_0_Template(rf, ctx) {
if (rf & 1) {
const $_r14$ = $r3$.ɵɵgetCurrentView();
$r3$.ɵɵelementStart(0, "button", 0);
$r3$.ɵɵlistener("click", function MyApp_Conditional_0_Template_button_click_0_listener() {
const $restoredCtx$ = $r3$.ɵɵrestoreView($_r14$);
const $root_r1$ = $restoredCtx$;
const $ctx_r13$ = $r3$.ɵɵnextContext();
return $r3$.ɵɵresetView($ctx_r13$.log($ctx_r13$.value(), $root_r1$));
});
$r3$.ɵɵelementEnd();
$r3$.ɵɵtemplate(1, MyApp_Conditional_0_Conditional_1_Template, 2, 1);
}
if (rf & 2) {
const ctx_r0 = $r3$.ɵɵnextContext();
let MyApp_Conditional_0_contFlowTmp;
$r3$.ɵɵadvance(1);
$r3$.ɵɵconditional(1, (MyApp_Conditional_0_contFlowTmp = ctx_r0.value()) ? 1 : -1, MyApp_Conditional_0_contFlowTmp);
}
}
…
function MyApp_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵtemplate(0, MyApp_Conditional_0_Template, 2, 1);
}
if (rf & 2) {
let MyApp_contFlowTmp;
$r3$.ɵɵconditional(0, (MyApp_contFlowTmp = ctx.value()) ? 0 : -1, MyApp_contFlowTmp);
}
}