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
1
vote
0 answers

New angular project is obfuscating global css classes by default

I created a new angular 15.2 project with material and animations, here the package.json { "name": "name", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch…
Majico
  • 475
  • 1
  • 6
  • 20
1
vote
1 answer

Angular 15 Material Design table styling not working anymore

I want to style the table rows and cells in an Angular Material Table in Angular. But the "old" examples with simple css styles don't work anymore in Angular 15: table { width: 100%; border-spacing: 0 8px !important; } td.mat-cell { padding:…
1
vote
0 answers

Getting error on `ng serve` : Error: NG0202

I am trying to upgrade an angular application (10 to 15) which basically is creating dynamic Angular components. Now, when I run ng serve I am getting the following error: Error: NG0202 at vn (VM910 main.js:1:19242) at Object.v8_Factory [as…
1
vote
0 answers

Angular Universal Prerender with angular Localization i18n deploy to IIS

I am using Angular 15,, with universal, ,and angular localization.... Before using angular localization I was able to deploy the app successfully by moving whatever in the server file into the root of my website,,,and keep the deployed structure as…
Mo Bdair
  • 243
  • 1
  • 5
  • 17
1
vote
1 answer

Angular 15 Material legacy components missing style

After upgrading my app from Angular 14 to 15 and adapted my Material components to the legacy ones, I have some style issues on some components. My mat-autocomplete and mat-select have imcomplete css on their mat-autocomplete-panel and…
1
vote
1 answer

Bootstrap 5.2 button primary color override

I'm trying to replace the standard colors in Bootstrap 5.2.3 in my Angular 15 application, to have .btn-primary of my app primary color but without success. My package.json is: { "name": "example", "version": "2.0.0", "scripts": { "ng":…
Barone
  • 13
  • 2
1
vote
0 answers

Angular app not working on Safari after update to v15

Few weeks ago I had update our app from Angular 14 to v15.1.6 and since then we get an error on Safari < v16 due to ReferenceError I found that it was a known bug solved last dezember. The experience seem to be exactly the same: Web app not loading…
1
vote
1 answer

ngbTypeahead not displaying suggestions

API is returning response as expected. But for some reason, suggestions are not displayed in the dropdown. No errors or warnings in the console and just freezing the screen. Spent countless hours trying to debug but realized another pair of eyes…
Phani
  • 5,319
  • 6
  • 35
  • 43
1
vote
1 answer

ASP.NET Core MVC http post method gets null as an argument from Angular call

When I pass a username as a value to the ASP.NET Core MVC action method, its parameter gets null as an argument. what can I do to avoid this? I know it's a common question but I am stuck. Angular code: callExternalProject(username : string):…
1
vote
1 answer

Angular 15. Returning api response as a function result

I'm an Angular and rxjs beginner and in my app I have a form control with mat-autocomplete from https://material.angular.io/components/autocomplete/overview. On each valueChanges event of that control I want to send an api call which should return…
Zets
  • 13
  • 3
1
vote
1 answer

LazyLoading component in angular 15 - specify input & output properties

I am converting my advance search component used inside my landing page into Lazy Loading. My landing page html: My landing page .ts file …
user2869612
  • 607
  • 2
  • 10
  • 32
1
vote
0 answers

upgrade Angular 14 to 15 Cannot find name 'process'

I want to upgrade my Angular 14 app to version 15, but I'm encountering an error message that says 'Cannot find name process.' I've already installed the @types/node package and added 'node to the types field in my tsconfig.json file, but the error…
vsam
  • 533
  • 3
  • 23
1
vote
2 answers

TypeError: this._chipGrid.registerInput is not a function error in Console after updating the material version 15.x.x

I've update my Angular to version 15.2.1 using the saem material version as 15.2.1. Here is the code which I was using
1
vote
0 answers

Router does not provide a valid path in APP_INITIALIZER

I use APP_INITIALIZER for automatic authentication (OAuth2) on the site. On entering the site, if the user is not authenticated then I redirect them to the Identity Server page with information on which sub-page they were on. After logging in, the…
UserLuke
  • 177
  • 13
1
vote
4 answers

Why am I getting an TypeError: instanceCleanupFn is not a function error when trying to navigate to a new route after upversioning Angular to 15

I recently up-versioned my Angular app to version 15 from version 14. I have a material toolbar that I am using for navigation. In the toolbar, I have multiple a tags that get populated with routerLinks that end up linking to another page. Here is…