Questions tagged [angular13]

For questions regarding programming in Angular specific to version 13. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.

562 questions
0
votes
2 answers

'ng' is not recognized after remove and reinstall

npm -g list command I can see installed Angular globally but when I run the ng --version it is giving this error ng: The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the…
0
votes
1 answer

Angular *ngFor loop in bootstrap 5 grid columns not right

I am using Angular 13 and Bootstrap 5 and trying the do a loop where I get 2 columns on a grid. the data is an array: items = [1, 2, 3 ,4]; Then I have this:
deszok
  • 145
  • 2
  • 14
0
votes
0 answers

Subscribe the values of forRoot service in component for page wise alert messages

My requirement is to show the alert message on page for error and success. I am following the stackblitz demo https://stackblitz.com/edit/angular-9-alerts-mdhjed?file=app%2Fapp.component.html and found it working to show the alert messages for same…
rajnesh
  • 1
  • 3
0
votes
1 answer

Angular adding single quotes and variable to the component.html not reading the variable and quotes

I am using Angular 13 and in my component.html I have this: This line works: Now, when I have a variable: myvalue = 'stockChart'; And do this:
deszok
  • 145
  • 2
  • 14
0
votes
0 answers

Npm install finds old peer dependency that does not exist

I have a normal Angular project and also an Angular library. Both used to be Angular 12, but today I decided to upgrade to Angular 13. I did this with the commands of the Angular cli and everything seemed to work fine at first. But after trying to…
David Mason
  • 915
  • 1
  • 9
  • 27
0
votes
2 answers

Conditional compilation using ifdef-loader with Angular 13 and Webpack?

I have an Ionic application that relies heavily on conditional compilation where I include or exclude blocks of code based on a set of config values similar to how m4 works. I had been using https://github.com/nippur72/ifdef-loader successfully for…
0
votes
1 answer

Module not found: Error: Can't resolve 'crypto' in 'C:\Users\monke\Documents\Epicon\esb-ui\node_modules\reflect-metadata'

I am on angular 13 and I am trying to use reflect-metadata package and I get weird Module not found Error: Can't resolve 'Crypto' in '*\node_modules\reflect-metadata'. I have tried all the solutions listed on stack overflow but its not working for…
Nirakar Puri
  • 129
  • 1
  • 8
0
votes
1 answer

Angular router outlet & wildcard issue

Example of a working code const routes: Routes = [ { path: '', component: WorkstationTemplateComponent, children: [ { path: '', outlet: 'workstation', loadChildren: () =>…
Ivan Moroz
  • 269
  • 1
  • 5
0
votes
0 answers

Angular update from V8 to V13

I am trying to update my application with Angular version 8 to the latest i.e. v13. I have read all required documents/procedures from the angular website https://update.angular.io/ and started upgrading the version. As instructed I have upgraded…
0
votes
1 answer

cannot delete in MEAN Stack - Angular 13 - Argument of type 'string | undefined' is not assignable to parameter of type 'string'

I'm tryring to delete a employee from a collection but it throw me this error Error Error: src/app/components/employee/employee.component.html:72:68 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type…
Dmarin
  • 23
  • 4
0
votes
1 answer

Angular 13, animate a clicked element while leveraging a single animation block

I am creating a simple, single page site (mostly to learn Angular), and cant seem to figure out how to use a single animation to affect different DOM elements. I could define the animation for each element, but that seems extremely ineffective. Is…
0
votes
2 answers

How to remove style on click of a button

I have a button which is inside an ngFor loop. I am styling it like this.
0
votes
0 answers

Trying to Implement here-map in ionic 6 but it gives `403` error and I couldn't able found any solution

I have been trying to implement here-map in Ionic 6 and angular version 13.0.0 and I got a 403 error so please help me to solve it. index.html