docs(): update examples

This commit is contained in:
mhartington
2018-06-14 11:46:38 -04:00
parent ad3538d089
commit 04e807f459
29 changed files with 748 additions and 402 deletions

View File

@ -2,12 +2,20 @@ import { Component, Element, Listen, Prop } from '@stencil/core';
import { ComponentProps, NavComponent } from '../../interface';
@Component({
tag: 'ion-nav-set-root',
tag: 'ion-nav-set-root'
})
export class NavSetRoot {
@Element() el!: HTMLElement;
/**
* Component you want to make root for the navigation stack
*
*/
@Prop() component?: NavComponent;
/**
* Data you want to pass to the component as props
*/
@Prop() componentProps?: ComponentProps;
@Listen('child:click')
@ -19,5 +27,4 @@ export class NavSetRoot {
}
return Promise.resolve(null);
}
}

View File

@ -1,5 +1,7 @@
# ion-nav-set-root
`NavSetRoot` is an element that allows you to set the root of the current navigation stack.
It is the element form a calling `NavController.setRoot()`
<!-- Auto Generated Below -->