MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / insert

Method insert

core/src/components/nav/nav.tsx:196–204  ·  view source on GitHub ↗
(
    insertIndex: number,
    component: T,
    componentProps?: ComponentProps<T> | null,
    opts?: NavOptions | null,
    done?: TransitionDoneFn
  )

Source from the content-addressed store, hash-verified

194 */
195 @Method()
196 insert<T extends NavComponent>(
197 insertIndex: number,
198 component: T,
199 componentProps?: ComponentProps<T> | null,
200 opts?: NavOptions | null,
201 done?: TransitionDoneFn
202 ): Promise<boolean> {
203 return this.insertPages(insertIndex, [{ component, componentProps }], opts, done);
204 }
205
206 /**
207 * Inserts an array of components into the navigation stack at the specified index.

Callers 4

pushMethod · 0.95
ngOnInitMethod · 0.80
ngOnInitMethod · 0.80

Calls 1

insertPagesMethod · 0.95

Tested by

no test coverage detected