Category "angular"

Angular 13 use proxy.conf.json in production

I use angular in version 13 with proxy.conf.json in development. I am try to use this proxy in production and generate a dist file with ng build but it's not wo

how to run pre-commit in angular 7?

when I run the git commit that time I need to run the ng lint --fix I tried with this. my package.json file image attached below: but it not working for me

How to pass token in header section in authorization field in angular

I got token and stored in "this.token" as this.token = Venktoken; console.log(this.token); When I tried to pass the token values in header section am

How to affect the directive children using @HostBinding?

I'm implementing a bootsrap's single button dropdown (docs). In order to make it to be "open", it must add a show class to main <div> and to the <ul>

Upgrade project from 9.1.3 to version 10 PrimeNG for Angular

Now I upgrade project version 9.1.3 to version 10 PrimeNG and I see some change here error change structure folder import ConfirmationService not import from 'p

Setting values of input fields with Angular 6

I've ran into some trouble setting the value of an input element using Angular. I'm trying to set the value of dynamically created input elements in my applica

Angular 6 HttpClient response has only some headers

We have a use case in our REST implementation where it returns a special header that we use for pagination and determining the number of pages. I have modified

Angular 6: Passing object from component to service

I want to pass my object from component to service class. I know there are some possible ways in angular series, but you can suggest me a good method to achieve

Angular/Testing unit: Failed: The pipe 'async' could not be found

When I run the ng test on this spec file it fail with this error: Failed: The pipe 'async' could not be found! I have tried to fakesync() the test and still the

Ngx material timepicker field issue in mat dialog

I'm using the ngx material timepicker field inside of a mat dialog and facing an issue where the data is properly mapped to the form group and the time also cor

Angular 8 - Upload file along with form and send to server

I have a reactive form in Angular 8. On form submission, I need to post the values along with the uploaded file to an API. But I am not quite sure of how to pos

Angular 4 AOT with webpack integration

After configure AOT with webpack in angular 4, i am facing following issue ERROR in : "let-" is only supported on ng-template elements. ("<template ngFor [

why i can't run command "npm update" in my ionic project?

I can't run command npm update or npm install in my ionic project. this is an error that I get. and here is my "ionic info"

How to add custom google maps styling xml in agm-map

I am trying to customize the google maps with the help of https://mapstyle.withgoogle.com/, custom google maps styling. I am using angular google maps(https://

event.preventDefault() or event.stopPropagation() not working with keyUp event

Directive file: I am trying to do that if my counter goes above two it should stop event or keyUp to reflect but is it not working. Can someone help me on this?

How do I prevent HTML2PDF from auto-downloading the pdf?

I have a HTML2PDF method in my JavaScript code. The code is working great on one hand as I can open the rendered pdf in a new blob tab and open the print window

Power BI embedded report in Angular 7 code is not exported with visual filters applied

We have embedded Power BI report in Angular 7 code and when we try to export using Power BI provided service it is not exporting applied filters instead it down

How to add pagination in angular material table that bind to API response

I'm new to angular. In my project shown list of products and its work correctly. My HTML code is below : <table mat-table [dataSource]="list_product" style="

Angular Material: How close overlay's backdrop also on right click?

How close the overlay's backdrop (opened by MatMenu or MatDialog) also on right click globally (without matMenu/matDialog reference)?

<iframe> downloads pdf file instead of displaying

This is my component.html <iframe [src]="frameSrc | safe" class="frameSet" type="application/pdf" frameborder="0" webkitallowfullscreen mozallowfu