File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,16 @@ import { Component } from "@angular/core";
9
9
</ActionItem>
10
10
</ActionBar>
11
11
12
- <Placeholder *ngIf="show; then thenTemplate else elseTemplate">
13
- </Placeholder >
12
+ <StackLayout *ngIf="show; then thenTemplate else elseTemplate">
13
+ </StackLayout >
14
14
15
- <ContentView>
16
- <ng-template #thenTemplate>
17
- <Label text="Then"></Label>
18
- </ng-template>
15
+ <ng-template #thenTemplate>
16
+ <Label text="Then"></Label>
17
+ </ng-template>
19
18
20
- <ng-template #elseTemplate>
21
- <Label text="Else"></Label>
22
- </ng-template>
23
- </ContentView>
19
+ <ng-template #elseTemplate>
20
+ <Label text="Else"></Label>
21
+ </ng-template>
24
22
`
25
23
} )
26
24
export class ContentViewComponent {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { Component } from "@angular/core";
8
8
</ActionItem>
9
9
</ActionBar>
10
10
11
- <Button text="false"></Button>
11
+ <Button *ngIf="!show" text="false"></Button>
12
12
<ng-template [ngIf]="show">
13
13
<Button text="true"></Button>
14
14
</ng-template>
You can’t perform that action at this time.
0 commit comments