Category "angular"

'concurently' is not recognized as an internal or external command, operable program or batch file

I try to run angular 2 project. There is package.json: { "name": "angular2-quickstart", "version": "1.0.0", "scripts": { "start": "concurrently \"npm

Angular 8 - not assignable to AsyncValidatorFn

I'm trying to create custom validator function in reactive form. Code: form.component.ts ... form = new FormGroup({ username: new FormControl('',

Angular 8/Sass: Find unused css classes

I have an Angular project that uses Angular+Sass, and since the project became pretty big I am constantly finding unused small css classes that need to be remov

Why can't I dynamically update the mask of an input using ng-neat input-mask?

I'm currently playing around with a stackblitz here: https://stackblitz.com/edit/angular-ivy-qr7yav?file=src%2Fapp%2Fanother.component.html With both ng-neat's

How to stop <mat-expansion-panel> from triggering with spacebar?

I have a mat-accordion with a textarea box in the panel-description. When I am tying in the text area and hit spacebar it opens/closes the panel. How can I stop

How to write the unit test cases for filterpredict function for mat angular table

setupFilter(column: string) { this.dataSource.filterPredicate = (d: Element, filter: string) => { const textToSearch = d[column] && d[column

How To Access Angular Material Colors In Components?

In angular material, we can pass colors to angular material components as attribute, for example <button mat-raised-button color="primary">Example</bu

Rules are only applied from the last override?

I have multiple overrides that target different file subsets, but some overlap. But eslint only seems to use the last matched override, thereby ignoring some of

Get rid of uncaught errors when resolving a promise

I have the following method export abstract class BaseCalculator { /** * Compute the promise parameter. * @param name name of the parameter. * @param

ERROR TypeError: Cannot read property 'slice' of undefined---Typescript

how are you? I have one problem 'slice' of undefined in my project. I use autocomplete material https://material.angular.io/components/autocomplete/examples M

angular material filter button always on the bottom right corner

I want to implement a filter button on a result page like this one: Is there any angular directive that implement this. Like for example the snack bar that i

Angular Date Pipe en-NZ

I am using the angular date picker and have set the locale to en-NZ in the app module like so. { provide: LOCALE_ID, deps: [LocaleService],

ef core angular - is there a way to get and display data from database in input box depends on another input box

First Input Box will ask the user to enter employee number Second Input Box (readOnly) - employee name will be display here automatic base on employee number pr

How to Change ElectronJS App default Icon?

I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default elec

How to pass NTLM credentials using angular http post call? [duplicate]

I am working on localhost where angular and web api using 2 different ports that's causing issue now. I am trying to call web api c# from angu

This expression is not callable. Type 'NgForm' has no call signatures

I have created a basic signup from in angular and got this error src/app/developers/signup/signup.component.html:55:45 - error TS2349: This expression is not c

echarts webGL acceleration

I want to use echarts in one of my projects. When I load around 1.000.000 data points my chart gets very slow. I know that echarts-gl provides webGL support but

Problems to represent a Tree using PrimeNG

I have a question about representing a tree with PrimeNG. I would like to test the representation of the tree before filling it with data from a JSON file. So I

No provider for $WebSocket angular5 with

I have some application which uses websockets, for that I was using angular2-websocket in my angular5 application. I keep getting following errors: StaticInj

Angular - Set headers for every request

I need to set some Authorization headers after the user has logged in, for every subsequent request. To set headers for a particular request, import {Headers