Category "angular"

Empty spaces added around HTML text when using Angular interpolation

Any idea why an empty space is added before text in HTML when using interpolation in Angular? Exemple in my Angular HTML template: <div class="info-title">

Get Angular Child routes from API

I want to get child routes from a database table. Can anyone please tell me how to call an api endpoint and bind the response to build child routes for a partic

How to correctly use Eslint rule newline-per-chained-call with Prettier in Angular

I added the rule: "newline-per-chained-call": [ "error", { "ignoreChainWithDepth": 2 } ] to my .eslintrc.json file. I Also extended "plugin

how to store as a blob the audio recoding from azure API SpeechSynthesizer and play it in angular

We are currently implementing a spring boot API that calls text to speech API SpeechSynthesizer. public PronunciationBlob callAzureToTransformTextToSpeech(Stri

Sanitize URL in Angular 2+

I'm trying to sanitize an URL that is dynamic according to the pdf that l get from BE, so l want to display this pdf in an iframe but l still get the following

Add a spinner when Mat-table is loading?

I load the data in my material table like that : ngOnInit(){ return this.annuairesService.getMedecins().subscribe(res => this.dataSource.data = res);} I

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