Category "angular"

How to apply mask behavior in primeng calendar (p-calendar)?

I am new to angular, in p-calendar I'm not able to apply masking behaviour. Example: If user enters 01012012, I want to change it to 01-01-2012. Thanks in advan

ion-select is not showing selected value with reactive forms

When i use formcontrolname on an ion-select element, the selected value is not shown from the beginning. It only appears when i click the select element, or if

NgRx Angular App not working with Redux DevTools

So I'm following this tutorial to get familiar with ngRx Entity, and for some reason my redux dev tools isn't 'lighting up' to indicate that it's in an app that

DynamoDB Datamapper error throws item did not adhere to the DynamoDBTable protocol

Not really sure where my error is here, Im using the AWS DynamoDb mapper function in node.js but I get this error: The provided item did not adhere to the Dyn

Conditionally make input field readonly in Angular 2 or 4: Advice + Best/which way to do it

I was attempting to answer someone elses question. And in doing so realised there was quite a bit of uncertainty in my mind about a few things. I'm hoping someo

Http post .csv file Angular 2 and then reading it on the server .NET

I'm trying to send .csv file from my client app (angular 2) to my web api (ASP.NET), and I have done the following: Tried to make FormData from my .csv file t

Angular 4.3 - HttpClient set params

let httpParams = new HttpParams().set('aaa', '111'); httpParams.set('bbb', '222'); Why this doesn't work? It only set the 'aaa' and NOT the 'bbb' Also, I hav

get multiple checkbox value as an array in angular

i'm trying to get values from multiple checkbox here https://stackblitz.com/edit/angular-ivy-uahtjx i try this approach but didn't with for me https://stackblit

Set and update validation on form array in reactive forms

In angular 4 i am creating a form that has a form array like so this.formBuilder.group({ name: ['', [Validators.required, Validators.minLength(3)]], requir

Angular 4 date pipe displays wrong date because of time zones - how to fix this?

I have a date value in each of my objects that I can Print like this: <td> {{competition.compStart }}</td> And here is how it looks: 1931-05-31

nativescript-websocket how to create "Advanced Interface" in Angular Nativescript

I'm not able to create the "Advanced Interface" of nativescript-websocket in Angular/Typescript, I need it to use a custom sslFactory to trust all certs. The p

DigitalOcean Apps Angular static site returns 404

I'm trying to deploy an Angular app on DigitalOcean's Apps as a static site. I don't use the Dockerfile. As an Apps plan, I choose basic. For my backend nestjs

How to convert Observable<any> to array[]

I have following method in typescript, I need to bind to angular grid CountryService GetCountries() { return this.http.get(`http://services.groupkt.com/co

firebase.auth().currentUser is null

I'm trying to retrieve the UID of the current logged-in firebase user in my Angular 4 app. Though, if I'm logging 'firebase.auth().currentUser' to the console I

How to skip a step if a condition is met in a previous step - Stepper | Angular Material

How do I skip a step using a true/false condition of a variable present in a few steps back?

Angular: Component from a shared module not being recognized

I have an app with 2 modules so far: "Shared" and "Web". All my components in web are working fine. I just created a simple component in the Shared module si

How to handle window scroll event in Angular 4?

I can't seem to be able to capture the Window scroll event. On several sites I found code similar to this: @HostListener("window:scroll", []) onWindowScroll()

how to change the border colour of ng-select component to red?

The select component in my angular html template is displaying fine. However I want to display this component with a red border, currently it is displayed in gr

Angular ngStyle for multiple styles

I am working on a simple animation library where my user can modify my component using property binding, so far I have been doing the following to apply their c

Angular ngStyle for multiple styles

I am working on a simple animation library where my user can modify my component using property binding, so far I have been doing the following to apply their c