Category "angular"

Angular4 CORS header contains multiple values

please could somebody help to resolve issue: backend spring application web.xml <filter> <filter-name>corsFilter</filter-name>

how to best conditional template show in angular 4

currently, i am practiced angular 4. when a normal user view this then show public content When A Registered user enter the web page then show edit or some cont

How to unit-test a valuechange of mat-autocomplete filtered search result in Angular?

I use the mat-autocomplete functionality for searching in projects and want to test if entering a search string, which cannot be found in the project list, lead

Styling mat-select in Angular Material

How to style mat-select's panel component. From the docs I get that I need to provide panelClass so I make it like this: <mat-form-field> <mat-sele

Accessing primary color which is defined custom theme inside component's scss

I have defined a custom theme in angular 4 and want to use this in one of my component's scss file Basically I want background of specific mat-grid-tile to be

Angular - ng: command not found

I'm trying to learn Angular and my knowledge in terminal is beginner. After I installed Angular and then type ng new my-project. I get the response ng: command

Angular 12 breaks absolute paths for templateUrl and styleUrls

I am using Angular 13, upgraded from Angular 11 but after upgrading to Angular 12, the absolute paths stopped working for templateUrl and styleUrls. When I was

Can't bind to 'options' since it isn't a known property of 'p-dropdown'

Getting this error when trying to add a primeNG dropdown to userform.component.ts, I've referenced this but to no avail as I already have this fix immplemented:

How to close a mat custom overlay on clicking outside when there is no backdrop?

I have created a dropdown panel using custom overlay from material, I need that if I set the property hasBackdrop: false, overlay should close if I click outsid

how to generate multiple html files with angular-cli builds?

I have an angular project with manual setup (no angular-cli) and configured the build to generate multiple html files using HTML Webpack Plugin. Now, I am plann

Insert some texts into D3 Rect element

I have a problem and I need your helps! I want to insert some texts into my D3 rect element and I tried many ways but they don't work. Here is the expected elem

Angular duplicate item via Drag & Drop

Scenario In my current project (Angular 8) I want to add items from a source list to a target list by using the Angular CDK Drag & Drop-Module. The item sh

Getting 404 error in spring boot even though method is logging statements

My app uses Angular on the frontend and Spring Boot (w basic authentication & Spring security) on the backend. I'm using a proxy for api requests to my back

am trying to hide scrollbar from angular material sidenav

am trying to hide the scrollbar from the side while keeping the ability to scroll StackBlitz Demo: https://stackblitz.com/edit/github-443roq

How to disable all FormControls inside a FormGroup

I have this reactive Angular Form structure: myForm: FormGroup; Personal: FormGroup; FIRST_NAME: FormControl; LAST_NAME: FormControl; ngOnInit(): void { th

How do I add a background-image to an Angular 2+ Directive using @HostBinding?

I need to create an Angular 2+ (I'm in 4.x) Directive (NOT a Component) that adds a background image via @HostBinding. I know I'm close, but when I inspect it

How to get primary or accent color of currently applied theme in angular material 2

I'm building an app with multiple theme with angular material design 2. I created multiple theme and it's working really great. Using this guideline : Angular M

Detect and warn users about caps lock is on

How to implement to detecting and warning users when caps lock is on with (or not) tooltip style in typescript (angular 4.2.2)?? Maybe with some keyup events, o

Problems with ngx-quill installation

Im having this errors while compiling my project Error: node_modules/ngx-quill/lib/quill-editor.component.d.ts:3:21 - error TS2614: Module '"quill"' has no expo

Angular Material Menu module: Export of name 'matMenu' not found

I have a little issue with Angular Material Menu module. I have this code in my app.module.ts: import { SharedModule } from './shared/shared.module'; @NgModu