skip to Main Content

Angular: about HttpParams – Javascript

I have written a method in Angular, and I executed it by passing the argument q='status'. However, the first console.log(params) did not include q='status', whereas the second console.log(params) included it. Why is that? getHospitalProfile(urlName: string, q: string | null =…

VIEW QUESTION

Conditional html property in Angular

I would like to assign a property to an html tag in angular based on a given condition. For example: <button {{condition === true ? mat-raised-button : mat-button}} class="edit-button" > <span>Click here</span> </button> The code above doesn't work. A valid…

VIEW QUESTION
Back To Top
Search