Skip to content
Advertisement

Tag: angular

Empty array despite pushing data to it

I have an array called this.loanAdjustmentList that I am adding data to but it is showing as empty when I need it. I call a service that returns a response to this.loanAdjustmentResult. I have showed response result below. response method My issue is that this.loanAdjustmentList is showing as empty. I’m not sure if the values are being set quick enough

Can’t change html class when i click button in Angular components

I wanted the category I clicked on to activate. Then I added “all categories” list element and had problem. It didn’t activate when I clicked on it. What I’ve tried: I added the “clearCurrentBrand” function to clear the “currentBrand” object when I clicked on “All Brand”. I did the cleanup by defining a fake object. Then I put this object

Angular Property ‘expenseEntry’ does not exist on type ‘ExpenseEntryComponent’

I am trying to build expense entry app from this tutorial https://www.tutorialspoint.com/angular8/angular8_pdf_version.htm page 33. I am getting this error – Property ‘expenseEntry’ does not exist on type ‘ExpenseEntryComponent’. i have tried this links a) Angular error TS2339 Property does not exist on type b) Angular – How to fix ‘property does not exist on type’ error? but i didnt get

Angular 12 ngx-translate / loader isn’t working

https://www.npmjs.com/package/@ngx-translate/core https://www.npmjs.com/package/@ngx-translate/http-loader I installed translate package from here and added ngx-translate module with its forRoot , translate service inside component ts (app & header) but it isn’t working also Header component Header.component.ts app.module.ts I also tried same steps in app.component.ts Answer The pipe syntax is {{ ‘my-translation-key’ | translate }} – you have double || in your template, please change

Advertisement