Category "angular10"

Angular 10 PrimeNG | Cannot assign value "XXXX" to template variable "activeTabIndex". Template variables are read-only

I have create one html component to create tabs using template to render the html, but here I want to make active specific tab from my code. I am using template

How to add branch lines to angular material table?

I am working on a UI (using Angular 10), where I have to show hierarchical structure inside a mat table. The HTML code is using mat table to show the data, and

Adding headers to response in an angular application

Is there any way to add headers to the http response in an angular application if the calls are made to fetch details from local json files? Version: 8 and abov

Issue while updated the styles from opactiy 0 to opacity 1 in angular through async call in html

Below is the piece of code I am using in angular <div class="root" [class.loaded]="loaded$ | async"> The styles applied to the class as follow div.root {

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

The "swiperight" event cannot be bound because Hammer.JS is not loaded

What is the proper configuration for HammerJS in Angular 10/11? We shouldn't import from 'hammerjs' anymore, instead, we should import HammerModule from @angula

Changing starting position of mat-slider

I am working on mat-slider. I want to place thumb in middle and start sliding left and right. My code is as follows https://stackblitz.com/edit/angular-9unenq-u

Angular 10.2 build: Localized bundle generation failed: Cannot read property 'value' of undefined

I have a project build on Angular 10.0.11. I updated the project to 10.2 with npm update, but this resulted in multiple Unable to fully load [...] for source-ma

event.preventDefault() or event.stopPropagation() not working with keyUp event

Directive file: I am trying to do that if my counter goes above two it should stop event or keyUp to reflect but is it not working. Can someone help me on this?

Angular 10 “No definition found for …” in HTML component in Visual Studio Code

I'm working with angular 10 in VSCode and everything was working fine until today. Suddenly I can't go to definition from HTML component neither via F12, right

Unable to update Angular from 10 to 11 due to dependency errors

I am following this site and trying to update my project to 11.0 through the following command. npx @angular/cli@11 update @angular/core@11 @angular/cli@11 Eve