By default the datepicker is using MM/dd/yyyy format and i want it to be set according to the browser language e.g.) if English India then it should be dd/MM/yyyy(used in the example below) This is my custom datepipe -> This is the html part -> Here i want to change the format of the date value shown in…
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…
Is there any way to get logged in user azure subscription Id’s using @azure/msal-angular?
I am using @azure/msal-angular to authenticate user. I have done it smoothly as in response i am getting id_Token, access_Token and tenant Id. Now i need to get logged in user’s azure subscriptions. Is there any way to do it using msal or azure is providing any java script libraries through which i can …
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 &#…
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 Pr…
How to merge two API response array in one array and returns data Angular 8
i am calling two different service and getting difrent response. but i want to build one common table after arranging the response of both the service. below is my service i am getting below response in AdminData. i am getting below response in viewerData. Expected output If i have AdminData then ‘name&…
angular array loop using ngFor get array count and display the value
I showed data using below angular functions I am using bellow html The above code is working well. currently I need do display count of each status. Ex: how many lockers with “alloc” status, how many lockers with “temp-alloc” status. Answer You can try with filter(),
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.…
Angular – @Inject(MAT_DIALOG_DATA) doesn’t allow property access
I’m injecting data of type Sequence into a modal This is the interface: I inject the data into the modal and I console.log it: Everything is fine, data is shown in the console and I can see every value of each property. The problem resides in trying to access any of these properties. If I try to console…
Angular: Add component by clicking checkbox and delete component by unclicking it
I am new to angular and am currently working on a ticket booking system. There, I need to add passengers according to the needs of the user. In the booking component, there is a form component where passenger details are entered. I want to add a button(add another passenger) in the form component such that wh…