Skip to content

Commit 940e66e

Browse files
committed
demo(angular): demo app fixes
1 parent ae9ce28 commit 940e66e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

demo-snippets/ng/basic/basic.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<Label text="Basic Drawer"></Label>
44
</ActionBar>
55

6-
<BottomSheet [(stepIndex)]="stepIndex" [steps]="[56, 156, 456]" backdropColor="#88000000">
6+
<BottomSheet [stepIndex]="stepIndex"
7+
(stepIndexChange)="onIndexChanged($event)" [steps]="[56, 156, 456]" backdropColor="#88000000">
78
<StackLayout backgroundColor="red">
89
<Label text="This is the main content"></Label>
910
</StackLayout>

demo-snippets/ng/basic/basic.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export class BasicComponent {
3636
this.stepIndex = index;
3737
}
3838

39+
onIndexChanged(event) {
40+
this.setIndex(event.value);
41+
}
42+
3943
goBack(): void {
4044
this.router.back();
4145
}

0 commit comments

Comments
 (0)