Every line of 'nuxt router push' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
51 onPush(route: Route, props:{ [key: string]: any}):boolean { 52 this.refs.nav.push({...route, component:RouteIOS, passProps:{...props, route: route}}); 53 return true; 54 }
27 public push(): any { 28 return new Promise(function(resolve: Function): void { 29 resolve(); 30 }); 31 }
19 push(props, route) { 20 if(!props){ 21 props = {}; 22 } 23 route.props = props; 24 this.navigator.push(route); 25 }
28 push(props, route) { 29 let routesList = this.navigator.getCurrentRoutes() 30 let nextIndex = routesList[routesList.length - 1].index + 1 31 route.props = props 32 route.index = nextIndex 33 this.navigator.push(route) 34 }