Category "angular"

Using Angular Validators to create a restriction of 6-12 characters, but NOT of length 9

I am trying to create a Angular Validator that allows me to validate a string of both letters and characters of lengths 6-12 inclusive, but not of length 9. I h

Angular combinelatest using subject without initial value

I am using Angular RXJS, I have multiple Behavior Subjects, My problem is: I want the posts$ stream to emit initially without setting a value for the category f

Cannot read property 'CUCUMBER_PUBLISH_ENABLED' of undefined

I have the error Cannot read property 'CUCUMBER_PUBLISH_ENABLED' of undefined when trying to execute my e2e test using cucumber in my angular project. Please do

nx dep-graph not showing any relations

I have this Angular/NestJS monorepo powered by NX, and I decided to make better use of NX by organising more stuff into libs, but before I do so, I want to make

npm install returns syscall spawn git error

I've tried to run npm install and faced these issues below I've tried to clear cache with force command, install git and update node but nothing worked here i

Angular recompiles forever on new computer

I got a new computer and installed Visual Studio code, and got my projects from our git repository. Next npm install, and then a test. It compiles and works. De

Anglar 13 route guard (canActivate) only works on first page load

Solution found - since the solution is much shoerter than the problem, I add it here: The problem was not the guard (even though I optimized the guard by using

Override done button functionality inappbrowser

Is it possible to override done button functionality? i need to just hide inappbrowser on done button as when show same the last visit url next time.

When is useful to use a custom directive in Angular?

In the angular docs there's an example of how to build a custom directive that hightlights a paragraph (or any HTML element where this directive is applied) on

Weird question mark in url when I change page using this.router.navigateByUrl or this.router.navigate

Using Angular 12 I'm trying to do a simple navigation using this.router.navigateByUrl or this.router.navigate. I don't know why but in one case, after the navig

How to pick variation of Material color for styling an Angular Component

Is there a way to define which palette variation will be used when setting the color to accent(or primary)? For example I wish to set the background-color for

How to customize the color of specific mat badge?

I have two matbadges, I want one in red and one in yellow. For the one in red I'm using: = 0" matBadge="{{element.failedTests}}" matBadgeColor="warn"> For

Cannot read property 'html' of undefined after jest update

For an angular v12 project which uses jest I just updated jest to version 28. Now, however, I get the following error FAIL src/app/components/update-input/upda

Angular Paginator not working after data reload

I am trying to share a Angular material table MAT-TABLE among different material tabs MAT-TABS. Also, i'm getting data from a API so i am calling a function on

Angular rich text editor max length validation

I need to set the max length of Angular Editor. I have tried so many ways but was not able to set the maxlength. <angular-editor [(ngModel)]="htmlConten

Deploying an Angular Universal App in Azure web app service - Linux based

I'm trying to deploy an Angular Universal App in Azure web app service (Linux webapp) using azure devops pipeline and build/release pipeline are successfully co

Can angular polyfills.ts file be safely removed

Now that angular is working with Ivy and decided to abandon internet explorer. Shall we safely remove the polyfills.ts file in our Angular >= v13 project?

Webpack Module Federation Unsatisfied version 11.x.x of shared singleton module @angular/common (required ^7.2.0)

I am trying to get my rather complicated monolithic app to work with Module Federation. My webpack config looks like that plugins: [ new ModuleFederation

Angular 13 MSAL 2.0 & .NET core API: Bearer error="invalid_token", error_description="The signature is invalid"

To isolate the problem, I have created the famous Visual Studio default "weather forecast" .NET core project with angular and tried to make the Angular ClientAp

Chrome opens suggest password dialog on input with type number on MacOS?

I'm running into an issue similar to this one. I have autocomplete="off" on the entire form, and it does work correctly in Firefox, and most of the elements do