Skip to content

Commit 643da25

Browse files
committedMay 15, 2018
demo(app): added output's event for ngx-material-pages
·
v3.0.03.0.0
1 parent 1084b7a commit 643da25

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎demo/src/app/getting-started/getting-started.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ <h1>Getting Started</h1>
66

77
<section class="getting-started">
88
<div class="container">
9-
<ngx-material-pages title="ngx-material-pages">
9+
<ngx-material-pages title="ngx-material-pages"
10+
(pageChanged)="onPageChanges($event)"
11+
(done)="onLastPageReached()">
1012
<!--1-->
1113
<ngx-material-page-loader>
1214
<ngx-material-page-outlook title="Setup Development Environment">

‎demo/src/app/getting-started/getting-started.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ export class GettingStartedComponent implements OnInit {
151151
});
152152
}
153153

154+
onPageChanges($event) {
155+
console.log('page changed - current index: ', $event);
156+
}
157+
154158
onLastPageReached() {
155159
this.snackBar.open('Awesome! You\'re done!', 'OK', {
156160
duration: 3000

0 commit comments

Comments
 (0)
Please sign in to comment.