update api docs to say page instead of view

This commit is contained in:
Tim Lancina
2015-10-07 14:37:19 -05:00
parent 613b438746
commit a3da0fa68f
6 changed files with 76 additions and 65 deletions

View File

@ -3,7 +3,7 @@ import {NavController} from './nav-controller';
import {NavRegistry} from './nav-registry';
/**
* Directive for declaratively linking to a new view instead of using
* Directive for declaratively linking to a new page instead of using
* [NavController.push()](../NavController/#push). Similar to ui-router's `ui-sref`.
*
* Basic usage:
@ -14,7 +14,9 @@ import {NavRegistry} from './nav-registry';
* ```html
* <button [nav-push]="pushPage" [nav-params]="params"></button>
* ```
* Where `pushPage` and `params` are specified in your component:
* Where `pushPage` and `params` are specified in your component, and `pushPage`
* contains a reference to a [@Page component](../../../config/Page/):
*
* ```ts
* import {LoginPage} from 'login';
* @Page({
@ -29,7 +31,8 @@ import {NavRegistry} from './nav-registry';
* ```
*
* ### Alternate syntax
* You can also use syntax similar to Angular2's router, passing an array to NavPush:
* You can also use syntax similar to Angular2's router, passing an array to
* NavPush:
* ```html
* <button [nav-push]="[pushPage, params]"></button>
* ```