Questions tagged [angular15]

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

342 questions
0
votes
1 answer

When I lunch chrome debbuger my breakpoints are not visible

IDE Visual studio CODE tsconfig.json { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "downlevelIteration": true, …
0
votes
0 answers

How to transfer the value of an array between components SAC [Angular 15]

I'm looking to transfer the value of an array between two components. My application is a basic crud application that will store accounts with an id, name and date. I have a service that has 2 basic functions and an array to pull from - The array is…
0
votes
1 answer

Angular 15 - forgetting existing input when routing between pages using the same component

TL;DR I want to set up an angular (v15 atm) app that acts as an advent calendar. This would: Allow me to route to a specific year (e.g. /calendar/2021) Allow me to open windows in individual years I've got this working. However! In my current…
Tim L
  • 141
  • 9
0
votes
1 answer

Maximum call stack size exceeded error at dialogRef.beforeClosed after update to angular 15?

I just updated my angular 14 project to 15 In angular 14 I used the following code to fill dialog result this.dialogRef.beforeClosed().subscribe(() => this.dialogRef.close(this.selectedRows)); It was OK and ran without any error, but after update…
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232
0
votes
2 answers

ngx-spinner not installing on Angular 15.0.3

i have angular version 15.0.3. when i trying to install ngx-spinner with command npm install ngx-spinner, I getting an error sashamaksyutenko@MacBook-Pro Client % npm install ngx-spinner npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve…
Sasha87
  • 1
  • 6
0
votes
0 answers

getting error on creating reactive forms module in angular 15

The error i am getting: I am new on angular. now getting this error when i am binding form with the property. here is the code of my app import { Component, OnInit } from "@angular/core"; import { FormBuilder, FormGroup,FormsModule} from…
0
votes
1 answer

Where to create the FormGroup in an Angular component?

I have angular 15 application containing Projects and Todos. and wondering where in my project component to create the following formgroup: public todoForm: UntypedFormGroup = this.builder.group({}); The full context is : /** * Project component. …
serge
  • 13,940
  • 35
  • 121
  • 205
0
votes
2 answers

Error during loading: Uncaught Error: describe with no children

What I do wrong? I have one file with test - strategy.spec.ts import { StrategyComponent } from './strategy.component'; describe(' get true number ', () => { let strategy: StrategyComponent; }); file karma.conf.js module.exports = function…
Roma N
  • 175
  • 11
0
votes
1 answer

Angular custom library module not found after updating to version 15

I have updated my custom library and UI Angular applications to version 15 but now when I try to run "ng serve" it says it can't find the module for my custom library. We are working with Artifactory for our repositorys. And I noticed that since I…
jhorton
  • 1,019
  • 3
  • 17
  • 36
0
votes
0 answers

Transforming the return from API in a CSV table

I'm trying to make a method that get all data from the request and transforming in a CSV table. My method look like this: todasGuias() { this.pagina = 1; this.paginaBusca = this.pagina; while (this.paginaBusca <= this.listaGuias.TotalPages) { …
Hugo vilar
  • 101
  • 6
0
votes
1 answer

Method returns HttpStatusCode in angular

I want to make a method that only makes another request when the before request return StatusCode 200. I'm using angular 15. My home.component.ts look like this and I want to todasGuias() only make another request at a time. todasGuias() { …
Hugo vilar
  • 101
  • 6
0
votes
1 answer

Javascript $event.stopPropagation() does not work with mat-checkbox inside mat-menu

I am struggeling to keep a material-menu open when selecting from a checkbox within it. Any suggestions would be appreciated. I've attemted solutions including changing to mat-selection-list, put each element of the menu inside a div that has…
RoyM
  • 735
  • 3
  • 14
0
votes
2 answers

Angular upgrade from version 8 to 15. Error "Cannot use import statement outside a module"

I am trying to update angular app from 8 to 15 after updating all the packages, app is throwing below error when running Uncaught SyntaxError: Cannot use import statement outside a module (at scripts.js:1:1) I have tried below solutions that I…
Bhavesh
  • 819
  • 1
  • 17
  • 31
0
votes
1 answer

Formating number as money in angular

someone know how to format a number recived from the API as money? I'm using angular 15. My HTML look like:
Hugo vilar
  • 101
  • 6
0
votes
1 answer

Default Route in angular15

I'm trying to set a default route for my app, as the same way that I readed at the docs, but for some reason it's not setting a default route and redirecting to LoginComponent route. Here is my app-routing.mudule.ts now: import { NgModule } from…
Hugo vilar
  • 101
  • 6
1 2 3
22
23