Category "angular"

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

Are Angular Service Modules still required?

In the angular docs, it lists the types of feature modules that one can implement. One of those being a service module. https://angular.io/guide/module-types

Run angular with ssl

I want to run my angular (7+) project with ssl certificate on localhost ( https://localhost:4200). I tried the following from this link source - Get angular-cl

Angular oriana weather city condition

We had written code for angular Oriana weather condition. in that there is a file / code for weather ts. when compiling getting error. Code is - Search TS impo

Couldn't add .NET Core tasks.json in VSCode

I've created an ASP.NET Core app with Angular from the console (dotnet new angular command). I want to enable debugging in Visual Studio Code for this applicati

@types included in 'typeRoots' but only working if explicitly included

I'm attempting to use the grecaptcha types package (@types/grecaptcha), but even though in my tsconfig, its setup as: "typeRoots": [ "node_modules/@types" ],

Angular: Cannot Get /

I am trying to open, build and run someone else's Angular 4 project but I am not able to view the project when I run it my way. I don't see what is going wrong

delay NgModule declaration with async import module

I would like to dynamically import a third-party module and check it. Then declaration in NgModule depends on it exist or not(true/false). Something like my cod

Angular - Server side - Initial response time is very high

My site - https://sandbox.billionlearners.com => It is on Angular 12 SSR (running on node) Total time taken to render the page is @6secs but initial server

Convert a mat-datepicker into a String

I'm trying to have a reactive form in which there is some dates that are entered by the user using mat-datepicker. The problem I face is that the output of the