docs(demos): rename nav-push-pop to navigation and use it on the nav as well

references #5311
This commit is contained in:
Brandy Carney
2016-02-03 18:04:13 -05:00
parent 15a50b7a79
commit 858855050d
6 changed files with 6 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ import {NavRegistry} from './nav-registry';
* ```html
* <button [navPush]="[pushPage, params]"></button>
* ```
* @demo /docs/v2/demos/nav-push-pop/
* @demo /docs/v2/demos/navigation/
* @see {@link /docs/v2/components#navigation Navigation Component Docs}
* @see {@link ../NavPop NavPop API Docs}
*/
@@ -52,9 +52,9 @@ import {NavRegistry} from './nav-registry';
export class NavPush {
@Input() navPush;
@Input() navParams;
constructor(
@Optional() private _nav: NavController,
@Optional() private _nav: NavController,
private registry: NavRegistry
) {
if (!_nav) {
@@ -74,7 +74,7 @@ export class NavPush {
}
destination = this.navPush[0];
params = this.navPush[1] || this.navParams;
} else {
destination = this.navPush;
params = this.navParams;
@@ -103,7 +103,7 @@ export class NavPush {
* This will go back one page in the navigation stack
*
* Similar to {@link /docs/v2/api/components/nav/NavPush/ `NavPush` }
* @demo /docs/v2/demos/nav-push-pop/
* @demo /docs/v2/demos/navigation/
* @see {@link /docs/v2/components#navigation Navigation Component Docs}
* @see {@link ../NavPush NavPush API Docs}
*/

View File

@@ -98,6 +98,7 @@ import {ViewController} from './view-controller';
* </pre>
* </div>
*
* @demo /docs/v2/demos/navigation/
* @see {@link /docs/v2/components#navigation Navigation Component Docs}
*/
@Component({