diff --git a/core/src/components/nav/nav.tsx b/core/src/components/nav/nav.tsx index f200db87cf..f53c2e9a5f 100644 --- a/core/src/components/nav/nav.tsx +++ b/core/src/components/nav/nav.tsx @@ -1,44 +1,10 @@ -import { - Build, - Component, - Element, - Event, - EventEmitter, - Method, - Prop, - Watch -} from '@stencil/core'; +import { Build, Component, Element, Event, EventEmitter, Method, Prop, Watch } from '@stencil/core'; import { ViewLifecycle } from '../..'; -import { - Animation, - ComponentProps, - Config, - FrameworkDelegate, - GestureDetail, - Mode, - NavComponent, - NavOptions, - NavOutlet, - NavResult, - QueueController, - RouteID, - RouteWrite, - TransitionDoneFn, - TransitionInstruction -} from '../../interface'; +import { Animation, ComponentProps, Config, FrameworkDelegate, GestureDetail, Mode, NavComponent, NavOptions, NavOutlet, NavResult,QueueController, RouteID, RouteWrite, TransitionDoneFn, TransitionInstruction } from '../../interface'; import { assert } from '../../utils/helpers'; -import { - TransitionOptions, - lifecycle, - transition -} from '../../utils/transition'; +import { TransitionOptions, lifecycle, transition } from '../../utils/transition'; import { RouterIntent } from '../router/utils/constants'; -import { - ViewController, - ViewState, - convertToViews, - matches -} from './view-controller'; +import { ViewController, ViewState, convertToViews, matches } from './view-controller'; @Component({ tag: 'ion-nav' diff --git a/core/src/components/nav/readme.md b/core/src/components/nav/readme.md index 13913899a7..f8ac0cbf1a 100644 --- a/core/src/components/nav/readme.md +++ b/core/src/components/nav/readme.md @@ -1,5 +1,7 @@ # ion-nav +Nav is a standalone component for loading arbitrary components and pushing to new components on to the stack. +Unlike RouterOutlet, Nav is not tied to a particular router. Meaning that if we load a Nav component, and push other components to the stack, they will not affect the apps overall router. This fits use cased where you could have a modal, which needs it's own sub-navigation, but not make it tied to the apps URL.