Enhanced Tab Menu - Copy this Angular, Tailwind Component to your project
muy bien pero hazlo mejor y tiene que tenesto sdatos en el ts ngOnInit() { //aqui se redirige al hijo this.routeItems = [ { label: 'Detalle Asesor', routerLink: 'detalle_asesor' }, { label: 'Empresa', routerLink: 'empresa' }, { label: 'Informacion Proyecto', routerLink: 'informacion_proyecto' }, { label: 'Distribucion', routerLink: 'distribucion' }, { label: 'Detalle', routerLink: 'detalle' }, { label: 'Valoración', routerLink: 'valoracion' }, ]; // Capturar el parámetro dinámico `:id` this.id = this.route.snapshot.paramMap.get('id'); console.log('ID recibido:', this.id); // Manejar cambios dinámicos en la URL (si los hay) this.route.paramMap.subscribe((params) => { this.id = params.get('id'); if (this.id !== null) { this.obtenerProyectoPorId(+this.id); } console.log('ID actualizado:', this.id); }); }
