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

102
Vistas
Angular 12 or 13 Observers vs Ember.js

I have been working in Ember.js since last 8 years. Now switched to Angular.js Version 13 In Ember.js if I have to do something when some variables of model change, This was the code

Following code is from Ember.js how can we do the same in Angular.js version 13 or 12

import { observer } from '@ember-cli';
import SomeOtherModel from 'app/models/someothermodel';

foo1:null,
foo2:[],
foo3:false,
SomeOtherModel:someOtherModel

fooObeserver: observer('foo1', 'foo2', 'foo3', 'someOtherModel.foo9', 'someOtherModel.foo12', function(){
      //do bla bla
      this.anymethod();
      this.someOtherModel.anymethod();
      .....
});

Note: fooObserver is not referenceable but whenever these variables will change this block will be executed.

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