26 lines
416 B
HTML
26 lines
416 B
HTML
@let fn = (a, b) => componentValue + a + b;
|
|
One: {{fn(0, 1)}}
|
|
|
|
@if (true) {
|
|
Two: {{fn(1, 1)}}
|
|
|
|
<button (click)=" componentValue = fn(2, 1)"></button>
|
|
<button (click)=" componentValue => fn(2, 1)"></button>
|
|
}
|
|
|
|
|
|
{{[(a) => a + 1][0](1000)}}
|
|
{{[(a ) => a + 1 + componentProp][0](1000)}}
|
|
|
|
|
|
@let a = 1;
|
|
|
|
@if (true) {
|
|
@let b = 2;
|
|
|
|
@if (true) {
|
|
@let c = 3;
|
|
{{(() => a + b + c)()}}
|
|
}
|
|
}
|