Category "angular"

angular 13 form validation dynamic input textbox show error on touch

angular 13 form validation dynamic input textbox validation I'm adding input text boxes dynamically. But form validations are showing by default when I click ad

How can I prevent navigation when a button is clicked within a table row that has a routerLink?

I have an angular material table that has the following structure. <table mat-table [dataSource]="myTable" matSort> <ng-container matColumnDef="colu

Get value from radio button Angular Material Dialog

I have Angular Material dialog , where I updating table clicking change status. I need to get value from radio button in my dialog Here is full working exampl

Ionic invalid package name __ngcc_entry_points__.json

I'm almost finished developing my application with ionic and angular. Unfortunately, I'm totally stuck. I can't build my application (on android) anymore. Here'

Currency Pipe not found error inside the ionic 5 component

I'm using a currency pipe inside my page module without any issues. However, it shows a 'not found error' when using it inside a modal component. example usage

Angular CLI command issue: "Unknown option: '--spec'"

I am running this command: C:\Users\Murali\my-first-app>ng g c abcde5 --dry-run -t -s --spec=false I am receiving the following error: Unknown option: '--

How to check which changedetectionStrategy is used in component

Is there a way to find out which changedetectionStrategy is actually used by components. I have a very large angular application which uses onPush on the outer

Angular material slide toggle capturing state

I've got a fairly basic slide toggle. I'd like to perform an HTTP call once the slider has been toggled and in case my HTTP call fails, revert it back to the in

ng-bootstrap Datepicker defaulting the navigation year to 10 years before the current date

I believe the default behaviour is to default the Year navigation to the current year with 10 years prior as the minimun date and 10 years forward as the maximu

Access to XMLHttpRequest has been blocked by CORS policy

I've a problem when I try to do PATCH request in an angular 7 web application. In my backend I have: app.use((req, res, next) => { res.set({ "A

angular audio play on ngoninit not working

html code: <audio id="notification" src="../assets/audio/notification.mp3" autoplay="true" muted="muted"></audio> ts code: let audioPlayer = <H

Input not rendered for ion-input in tests

I have a simple form with two fields: username and email. My test looks like this: ... fit('should create', () => { console.log(fixture.debugElement.nat

How to detect dead or unused code in Angular?

I and my team are working on an angular application from more than a year now. As part of our code refactoring process we want to delete unused or dead code fro

How to clear pre-defined blockly custom blocks in Angular

I have some problem initializing custom blocks I created blockly custom blocks to modal export const ConditionBlocklyBlock: Block[] = [ { type: 'SUM_MAT

ngx-webcam how to identify if user allowed webcam permission or not - Angular 4+

I'm having issue with ngx-webcam plugin in Angular4+, as i'm using this plugin to capture images in my application but when user doesn't allow permission of usi

How to convert ArrayList to Pageable object springboot

I was trying to return list as page object to my client side angular Application. But it return all the list not a page. this is my server side controller m

How do I rerun "ngOnInit()" after navigating to the same URL (parameter is different)? [duplicate]

In my app there is a URL like /organization/campaign/{campaign handle}. My goal is to redirect the user to a default campaign handle when the

Upgrade Angular - Two or more projects are using identical root warning

For updating Angular 8 to 9, I am following the official document to upgrade. Which suggests first updating to the latest version of angular 8, like: ng update

Upgrade Angular - Two or more projects are using identical root warning

For updating Angular 8 to 9, I am following the official document to upgrade. Which suggests first updating to the latest version of angular 8, like: ng update

How to handle form error validations in Angular

I am new to Angular and in my form I have three fields Name, email and radio section. My requirement is: when I select name radio button Name input field is req