Generation

generate functionSat, 12 Nov 2022

split routes vuex and shopware

private parseRoutes(routes: any[]): any[] { const result = []; for (const route of routes) { if (route.children) { result.push(...route.children); } } return result; } const routes = this.parseRoutes(this.router.config);

TypeScript
Generate More

Questions about programming?Chat with your personal AI assistant