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

549
Vistas
How to select json value as Rxjs Observable?

I have tried to read the json value through Rxjs observable and Bind in the view as follows and not able to get the value and instead it shows the anonymous object.

app.component.html

Count: {{ count$| async }} 

app.component.ts

@select() readonly count$: Observable<number>; 

ReduxState Object

{
  count: {
    counter: 10
  }
}
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You should know that you selected anonymous object because it didn't match the name of the property.

The select decorator uses a parameter to get the value of property, but

If nothing is passed then the @select decorator will attempt to use the name of the class property to find a matching value in the Redux store. Note that a utility is in place here where any $ characters will be ignored from the class property's name.

You can use state of the store

@select(state => state.count.counter) readonly count$: Observable<number>; 
over 4 years ago · Santiago Trujillo 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