Skip to content

Commit

Permalink
test(angular): adds test for explicit routerDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 20, 2018
1 parent c87f0c5 commit 822f60f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions angular/test/nav/src/app/simple-nav/page-one/page-one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import { PageTwo } from '../page-two/page-two';
Page One - {{ts}}
<div>
<ion-button [routerLink]="['/simple-nav/page-two']">Go to Page Two</ion-button>
<ion-button routerLink="/simple-nav/page-two" routerDirection="forward">FORWARD (Page Two)</ion-button>
<ion-button routerLink="/simple-nav/page-two" routerDirection="back">BACK (Page Two)</ion-button>
<ion-button routerLink="/simple-nav/page-two" routerDirection="root">ROOT (Page Two)</ion-button>
</div>
</ion-content>
`
Expand Down
14 changes: 14 additions & 0 deletions angular/test/nav/src/app/simple-nav/page-two/page-two.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ import { Location } from '@angular/common';
<div>
<ion-button routerLink="/simple-nav/page-one" goBack>Go to Page One</ion-button>
</div>
<ion-list>
<ion-item href="/simple-nav/page-one" routerDirection="forward">
FORWARD (Page one)
</ion-item>
<ion-item href="/simple-nav/page-one" routerDirection="back">
BACK (Page one)
</ion-item>
<ion-item href="/simple-nav/page-one" routerDirection="root">
ROOT (Page one)
</ion-item>
</ion-list>
</ion-content>
`
})
Expand Down

0 comments on commit 822f60f

Please sign in to comment.