Category "angular"

ngx-useful-swiper setup in Angular 8 gives error

I followed this guide to set up swiper slider in my Angular 8 application. I get the below error when importing NgxUsefulSwiperModule into app.module.ts ERROR i

How to set global configuration for angular-cli?

I would like to make my ng serve command default with liveReload = false. I tried ng config --global serve.options.liveReload false but I got an Invalid Path e

PrimeNg Calendar: Default time for selecting start date with time - should be start of day time that is 00:00:00

I am using PrimeNg calendar widget with 2 fields that is startDate and endDate. Currently when selecting startDate, It is showing the selected date with curren

Failed at the @angular/[email protected] postinstall script

Hi I can't install the angular cli with npm install -g @angular/[email protected]. I keep getting this : > node ./bin/postinstall/script.js module.js:549 thr

Change the mat-autocomplete width?

It seems like the <mat-autocomplete> width is always the width of the input we're typing in. Is there no way to make it larger? I have a very small input

Material Angular - doesn't work properly

https://material.angular.io/guide/getting-started ng new testapp cd testapp npm install --save @angular/material @angular/cdk npm install --save @angular/anima

Angular 5 - form validation e-mail

i want to solve this problem: Angular 5 - template driven form An input-field has type email. Example: <input type="email" [(ngModel)]="model.email" #email

" npx cap add ios" fails with error "Updating iOS native dependencies with pod install - failed!"

I just created a brand new Ionic app, using command "ionic start myApp blank" I added the necessary angular dependencies to get "ionic serve" working properly.

Angular 5 - Copy to clipboard

I am trying to implement an icon that when clicked will save a variable to the user's clipboard. I have currently tried several libraries and none of them have

npm package seems to be corrupted

I am getting these warnings and then errors at the end. What is the fix? npm WARN deprecated [email protected]: core-js@<3.0 is no longer maintained and not re

Object is possibly 'null' (undefined)

See, this is my code and it is saying few errors, which are: Object is possibly 'null', Property 'style' does not exist on type 'Element'. It is very irritating

'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