Category "angular"

rxjs date range picker always wait for start and end observables

I have an angular material date picker and i'm trying get the start date and end date observables before I submit my query component.html <mat-form-f

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:64 - error TS1005: ';' expected

My app was working fine until I uninstalled bootstrap and installed angular material instead....Then tried to do ng serve but got this error.. Error: node_modul

How to Add Primeng Megamenu in newly added Component in Angular

I created a angular 13 and PrimeNG 13. I generated a component named header. I am trying to add Mega menu . How do i add it on header component. I am trying to

when router link to change body tag class name angular

<body [ngClass]="routerLink="/" ? 'header-fixed counter-scroll' : 'header-fixed'"> here route link / to class name(header-fixed counter-scroll) other rou

Type 'Error' provides no match for the signature '(this: Observable<{}>, subscriber: Subscriber<{}>): TeardownLogic'

I had angular 5.2.11, but today I updated it to 6, so when I try to build, I got an error says : TS2345: Argument of type Error is not assignable to parameter

Async pipes should not be negated

I migrated from TSLint to ESLint following the guide. Now, I get this error message : Async pipes should not be negated. Use (observable | async) === (false |

Firefox CSRF token issue on the request

Sometimes happen that randomly and only in Firefox my endpoint fails because the XSRF-TOKEN doesn’t match the request XSRF-TOKEN Cookie due to the fact th

Receiving "unmatched pseudo-class :lang" after updating Angular

After updating node, I started receiving the following error: custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang I am not unders

Ngx-image-cropper Shift Image

I am using ngx-image-cropper, I have used all of its functionality, like zoom, rotate. Now the real problem is when I zoom the image it's scaled from center, no

"export 'Metric' was not found in '@superset-ui/core' (ERROR in ./node_modules/@superset-ui/chart-controls/esm/types.js) Angular/React

I'm new to superset-ui and currently looking to use it in our Angular application, although this issue occurs for React as well. I just wanted to try out "@supe

JS or Angular Copy Text with Image

I need to copy both text and image in single click. I tried below code. I clicked and pasted only I'm getting "clip_message" My HTML: <button id="copy" oncli

Breaking changes after upgrade to Angular 13

I have a filter i use to allow my users to go and apply a filter to a specific key an the data. User selects fieldname from dropbox and then goes and provides v

angular and rxjs - removing properties from object

I have an endpoint that returns the following object properties: { "id": "1", "department": "sample", "address": "sample", "email": "[email protected]",

I am trying to merge two properties along with validation pls help me

concernForm = this.formBuilder.group({ voucherId: [null, [Validators.required,Validators.pattern(validationProps.nonwhiteSpacePattern)]], customerId: [nu

What's the point of writing unit tests with mocks, if it cannot catch changes in the source code?

I started writing unit tests recently. When I try to test the service of the Angular component, I usually mock it. Therefore, if someone deletes the line of the

Angular 10 auxiliary router outlet not working when placed in lazy loaded module

I have a problem with second router outlet when it's created in lazy-loaded module. I started with this example where auxiliary routes https://stackblitz.com/ed

Cluster labels are not visible - ArcGIS javascript API 4.19

When we remove any layer from the group layer after that label are not visible for all layers. We tried to 'loadAll' method group layers still issue is there. I

How to use control-value-accessor in storyBook?

I have a custom input component and want to create story (using storybook) input.component.ts @Component({ selector: 'app-input', templateUrl: './input.comp

JIT compilation failed for NgModule class

Here i got an Error like JIT Compilation failed and needed to flag some -aot and etc.. stuff

Why does Angular trigger ChangeDetection on parent components on DOM events despite OnPush strategy?

trick question I haven't found any answer in the documentation yet. OnPush strategy is known to trigger ChangeDetection in the following cases : when a DOM even