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

Want to kickstart your project?Use the new AI Studio to create your code