Questions Tagged [Angular]

Questions about Angular (not to be confused with AngularJS), the web framework from Google. Use this tag for Angular questions which are not specific to an individual version. For the older AngularJS (1.x) web framework, use the AngularJS tag.

279,368 questions
0 votes
0 answers
7 views

How to choose Angular Material accent color options

For example: If I am setting my custom theme as $my-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400); Will I be able to choose any alternate color from the option color="accent ...
0 votes
2 answers
13 views

npm install error "Cannot find module 'dezalgo'"

I tried to install node modules using npm install. But I am getting the following error. npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'dezalgo' npm ERR! Require stack: npm ERR! - C:\...
  • 95
-2 votes
0 answers
8 views

Can I create an Angular component using viewContainerRef without rendering it at the bottom of the screen of its parent?

In this Stackblitz I can create a 'TestComponent' that I can use to fetch the innerHTML. When I do this the component gets rendered on the screen at the bottom. Question - Can I generate this '...
0 votes
0 answers
7 views

how to post ngx-select-dropdown to web api

I'm using ngx-select-dropdown then we will get the data from the database. HTML <td class="dropdown"> <ngx-...
-1 votes
0 answers
13 views

how to display object value in typescript

How to display object value in forms in angular. In browser developer tools I am getting the object and its values fine. But can't populate the values in the form. In *.ts file i got: console.log(this....
0 votes
0 answers
8 views

material dialog not rendering component?

I have a simple component: @Component({ selector: 'my-component', template: '<p>I am a simple component</p>', }) If I put <my-component></my-component> somewhere in my app'...
  • 8,592
0 votes
0 answers
19 views

Angular write unit test for Confirmation Dialogue (model in model)

I have a requirement where once user clicks on Delete button a confirmation window pop up with option to Cancel or Delete. Challenge here, is that Delete button is on another popup-dialog.component.ts ...
  • 1,029
0 votes
1 answer
8 views

password:new FormGroup("",[Validators.required])

I am getting an error in the ts file while working with the authentication part, any guess why I am getting this error in the app.component.ts I am getting error in line no 13 and 14 import { ...
0 votes
0 answers
37 views

Links work on angular 8, 10 and 11 but not on angular 12

I have links working sinche Angular 8, but with Angular 12 they don't work anymore. Tried several things I´ve read, but with no success html <li class="nav-item"> <a class="...
0 votes
1 answer
27 views

How to get the total price? (ANGULAR)

I've been trying to get the total price of cart items, but I can't? I tried to do a method that sums all prices and passes it to the template, but I couldn't. Here is the Cart Component as you can see:...
0 votes
0 answers
7 views

How can i hide the scroll bar of mat-sidenav in angular material?

I implement an angular mat sidebar, but right now I have two scrollbars one is of the browser, and one is off the mat sidenav container. I tried many ways and solutions but I could not do it can ...
0 votes
1 answer
8 views

What happens to unit tests and e2e tests in production Angular builds?

Let's say I'm running default production build settings in angular.json. What happens to all of my unit test and e2e test files (Protractor OR Cypress) when I run npm build --prod? Are these files ...
0 votes
1 answer
18 views

Angular HttpClient is not executing

So I have the following function. It is executed until the first console.log, but not further. I checked network traffic, and the API call is never executed, but i don't know why. deleteReward(id: ...
0 votes
1 answer
26 views

Can I convert a custom typescript component to a HTMLElement in Angular?

If I have a custom component in Angular. Ex. 'my-component' Is there a way to convert this component to a HTMLElement to pass to a function, if the function takes a HTMLElement as a parameter? I know ...
0 votes
0 answers
12 views

Render specific child nodes of specific parent nodes using Angular Material Tree

Consider the below Array Data: const Tree_Data = [ { id: 'A', friendlyName: 'Account', columns: [ { id: 'a1', friendlyName: 'Account Code', }, { ...
  • 23

15 30 50 per page
1
2 3 4 5
…
18625
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest