Category "angular"

NgXs @selector doesn't support async functions

Inside my NGXS store I have the following async selector @Selector() static async mainState(store: IMyStore): Promise<IMyState> { return this.getActiv

How to handle multiple radio buttons - Angular

Here I have list of yes or no questions and provide radio buttons for the user to choose the answer for each individually - also providing two buttons for "All

Removing Comma from number pipe in angular2

I am a beginner in Angular 2.I'm trying to display some data using angular. this is my code part: <span>Value :</span> <span>{{myvalue| num

Property 'copy' does not exist on type 'Clipboard'

I'm trying to copy a text when a button is clicked. I tried following Angular's documentation (https://material.angular.io/cdk/clipboard/overview#programmatical

Typescript Build Fails When Adding Angular into Monorepo (Clashing of Jasmine and Jest Types)

Gist I have a Monorepo with solely Typescript packages. When I run tsc --build all packages will be compiled to Javascript. This worked fine until I added a pa

FormGroup is deprecated

I've already seen some related question & answers, but unfortunately those didn't help me much. ngOnInit(): void { this.form = this.fb.group({ new

Disable pausing and seeking video - jwplayer 8.21

Hi I am using jwplayer (8.21) for my angular project. I need to disable pausing or seeking video and here is my code: let currentTime = 0; jwplayer('pla

Prevent multiple identical http calls from Angular service

I've a service to get the data from an API in my angular app. The service is used in different components - and the same http request is send multiple times. To

How to get rid of the warning .ts file is part of the TypeScript compilation but it's unused

I Just updated angular to latest 9.0.0-next.4. I am not using routing but suddenly after updating I keep seeing this warning. How Do I remove this warning W

Directive to disable Cut, Copy and Paste function for textbox using Angular2

I am using Angular2 to restrict the copy and paste in textbox. But how do i write a custom directive, so that it will be easy to apply for all the text fields.

Binding custom class inside ngClass in Angular

I am trying to bind a class name inside Angular ngClass so that the user will be able to set any class name he likes to the element. I have the following in m

Binding custom class inside ngClass in Angular

I am trying to bind a class name inside Angular ngClass so that the user will be able to set any class name he likes to the element. I have the following in m

Disable selection of current word when right-clicking on an element

I've enabled right-click on an element, like so: <div class=my-content (contextmenu)="openContextMenu($event)"> In my handler, I've added the necessary

kendo tabstrip method selectTab does not work as expected

I have following code in my template <kendo-tabstrip #tabstrip (tabSelect)="onTabSelect($event)" [animate]="false"> <kendo-tabstrip-tab [title]="'Cus

angular 7: Server Side Pagination Using Angular Material

I am using Angular 7 and Angular Material as server-side pagination. I got problem with this matter. The problem is the pagination become like this. I want t

I get "Http failure response for (unknown url): 0 Unknown Error" instead of actual error message in Angular

I'm using Angular 4 HttpClient to send requests to external service. It is a very standard setup: this.httpClient.get(url).subscribe(response => { //do so

Need to show delete button for previous field sections also

Stackblitz Link Here if I click on add button delete button is showing for the last fields. Need to show delete button for all the respective fields sections. t

Angular: Google Material Icons not rendering

In Angular project Google material icons are working fine in chrome but not rendering in chrome incognito mode and firefox . In index.html below lines are used

node-express how to pass DATE params in URL query string and how to parse that

I have an app built on angular 2, a service in that sending http request to fetch the data from oracle DB, usind node-oracle db and express framework. I have b

angular cannot get data from backend to frontend

I'm trying to get data to the angular frontend. Tried to get data from another api, but still doesnt worked for me. So the API is working but the data cant disp