Category "angular"

Angular material slider not sliding

I am using mat-slider and, while trying to slide the control using the mouse, it does not slide, either on the left or right. It is only working when I click to

The build command requires to be run in an Angular project, but a project definition could not be found

I'm getting the following error after an npm audit fix --force (I know, I know). The build command requires to be run in an Angular project, but a project

Angular 6: simple confirmation on page leaving

I need to make a simple confirm window and I saw a lot of examples of how to do it with extra actions (like waiting until file uploading of form is not field).

ng : The term 'ng' is not recognized as the name of a cmdlet, function Visual Studio Code Terminal

In VS Code when I am running command ng build, getting error PS D:\Dashboard\Test1> ng build ng : The term 'ng' is not recognized as the name of a cmdlet, fu

material angular select all checkbox

I'm trying to implement select all checkbox on angular material. When user click on specifc checkbox (item), master checkbox should show Indeterminate and turn

Is it possible to create tables within Angular ts files?

So I have an array which holds different categories to compare different companies. Depending on the user selection there may be 3 categories or 10 to display.

Angular2 Typescript Customized Alert

I am totally new to Angular2, And I am stuck on how to create an customized alert like this: check this alert box here Since I am new to Angular2 concepts , I

RxJS: takeUntil() Angular component's ngOnDestroy()

tl;dr: Basically I want to marry Angular's ngOnDestroy with the Rxjs takeUntil() operator. -- is that possible? I have an Angular component that opens several

Angular - An unhandled exception occurred: spawn UNKNOWN

In Angular-13 project I have a project that has been working very fine. But suddenly, when I did ng serve I got this error: An unhandled exception occurred: spa

How can i set a default selection in PrimeNG Treetable

I want to set the selection with the value i get from Local-Storage. Here is the code: HTML: <p-treeTable [value]="tableDataRow$ | async" [col

popup is not showing on button click

I'm using devextreme components in my angular web app. Now, I'm trying to show a popup, if the user clicks on a toolbar button. I bind the popup visibility to a

How to test Custom Elements / Web Components with Testing-Library, Jest and JSDOM?

I am trying to test an Angular app with testing-library/angular@11 and [email protected] which uses custom-elements quite heavily. Unfortunately I am not quite sure i

Angular: ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked

What's wrong? Getting the following error in console: AboutComponent.html:1 ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed a

Responsive Typography in Angular Material

Trying to figure out how to set font size of mat-tab-label based on screen size (below 400px). I tried putting custom configs in different media queries like t

Error while installing ng-bootstrap in angular v-13

Throwing the below error while trying to install ng-bootstrap in angular version 13 Error : These are the other details respective to the node, npm and os Ang

fa-icon is not a known element in a Reusable Module

Not sure why this is happening on a reusable Module (or what Iv'e got wrong). ERROR Error: Uncaught (in promise): Error: Template parse errors:'fa-icon' i

Should I initialise an Angular service in its constructor or in the ngOnInit method of the app.component?

I'm new to Angular. I have a service that needs to subscribe to a subject provided by another service. If this was a component, I would create the subscription

How to pass class style from parent to child in Angular, and using it in specific element

so I'm using a template that I downloaded of ngx-admin. I'm creating new lib of some simple components such as input with labels and etc. this lib component is

Angular Material MatFormField appearance="fill" theming questions

I have a question dealing with Angular Material theming, specifically the MatFormField directive. Probably around Material v6, I found that the matFormField dir

Angular 9 display number of change detection cycles on the UI? stackblitz inside

I'm trying to build a small dev component that displays only in non-production builds. One of the things that I see useful to keep track of is the number of c