Category "angular"

Trying to use turf js in angular 5

I'm an angular 5 (and turfjs) noob trying to use the turfjs along(). I've got a pretty simple working angular 5 project (built with angular-cli). To add turf

p-calendar angular 6 event onClick doesnt fire (and others events)

I want to call a method when I open a component, so I've tested some method, no one works just (onSelect) event works. Here is a part of the code : <p-cal

How to Restrict or Remove Emojis or Emoji-cons from Textarea on Input box using JavaScript and Angular4+

Here I want to post my Answer of the above question because the same issue I was facing but didn't find complete answer. After doing R&D, Mix and merge vari

How to use child components in angular reactive forms?

In my Angular 11.2.6 project, I have a form with three child components, all of which take user inputs. I want to attach formControls to all of these child comp

Importing Javascript library (jsencrypt) into Angular 2 app

I have looked through all the tutorials revolving around this issue, and havn't been able to find a solution. Some background first. I have a Angular 2 app and

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?