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

207
Vistas
set variable between models in aurelia after or in attached

I have two models:

1.- main view with html elements

2.- a custom attribute, being used by html div in main view (previous point number 1.-)

I want to call an external library from custom attribute (i already did this), so i need to configure this object now, to do this i need to setup a value based in row width from the element using this custom attribute.

  1. By example, in main view:
<div customAttribute.bind="doSomething()"></div>
  1. in customAttribute (in view model, javascript)

    ... library.width = (this value will came from main view);

I know i can use attach() in custom attribute and i have tried to do this passing values with .bind in main view but it seems the html bootstrap row width is not loaded because object has no value in this field.

Is there another way to do this ????

about 4 years ago · Juan Pablo Isaza
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