Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

546
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!