Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
OGX.JS capture values from route

I'm using OGX.JS. I'm trying to add a dynamic route to a view but I can't seem to capture the values. Here is my route.

  "mystage/invoices/([a-z0-9]{24})/([a-z0-9]{24}):OML": "invoices"

In my view invoices I have

   this.construct = function(__data, __route_data){        
        console.log('ROUTE', __route_data);
   };

But __route_data is null

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Welcome to SO. You have to declare the property of the object in your route such as

  "mystage/invoices/propertyA:([a-z0-9]{24})/propertyB:([a-z0-9]{24}):OML": "invoices"

Then it should be available in __route_data as

 __route_data.propertyA
 __route_data.propertyB
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda