For questions regarding Angular specific to version 15. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular15]
342 questions
0
votes
1 answer
Directive input binding when using Angular HostDirectives
Using Angular 15+ hostDirectives, how can I bind to inputs of the directive?
Note that I don't want to forward directive inputs to the host component, making them inputs of the component. I want to bind an expression to one of the directive…

Alireza Mirian
- 5,862
- 3
- 29
- 48
0
votes
0 answers
TypeError: Cannot read properties of null (reading 'flags')
I am facing an error with Angular 15.2.9 version:
TypeError: Cannot read properties of null (reading 'flags')
ng v:
I tried all the answers which are for Angular 9, but no luck.
karma.conf.js
// Karma configuration file, see link for more…

Pathik Vejani
- 4,263
- 8
- 57
- 98
0
votes
2 answers
reactivity in autocomplete component
I need to update the added value in the DOM. I pushing a new element into the array(options). But it's not updating in the DOM.
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Observable }…

Shankar
- 2,565
- 8
- 29
- 56
0
votes
0 answers
While migrating to angular v15.2.9, Custom CSS are throwing an error
`I am very much new at these migration parts, while updating angular versions I am facing these issues.
./src/app/app.component.scss?ngResource - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
You probably don't mean to use…
0
votes
0 answers
Angular + .net core application failing with @Injectable
Created a brand new Angular + .net core application through VS2022.
First time running, and all works perfectly.
Added a simple file :-
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
class HeroService { }
and we…

Simon
- 1,412
- 4
- 20
- 48
0
votes
1 answer
Angular open component in new browser window
New window doesn't recognize the app (see )
new-window.component.ts
@Component({
selector: 'app-new-window',
template: `
New Window Component
`, }) export class NewWindowComponent { // component…
Stefan
- 50
- 1
- 10
0
votes
0 answers
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Object'. In Angular 15
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Object'.
No index signature with parameter of type 'string' was found on type 'Object'.
(Parameter) element:Object
tranform(items: Object[],…

User0777
- 21
- 3
0
votes
0 answers
Property does not exist on type component or object in Angular 15
I have upgraded angular CLI 7 to 15 version, so I'm getting every time application when I'm running getting the error property does not exist if property exist also I'm getting same error. how can I resolve 'property does not exist' kind of…

User0777
- 21
- 3
0
votes
0 answers
Error @types/ws Type 'Server' is not generic after updating from angular 9 to 15 step by step
Getting below error after performing ng serve
Error:
Error: node_modules/@types/ws/index.d.ts:328:18 - error TS2315: Type 'Server' is not generic.
328 server?: HTTPServer | HTTPSServer | undefined;
…

Akash Kumawat
- 33
- 10
0
votes
1 answer
"./src/theme.scss?ngGlobalStyle:1:0 - Error:: Module parse failed: Unexpected token (1:0) File was processed with these loaders:"
After upgrading from Angular v14.3.0 to Angular v15.2.9,
with :
ng update @angular/core@15 @angular/cli@15,
ng update @angular/material@15
i got this error when i try to compile :
./src/theme.scss?ngGlobalStyle:1:0 - Error: Module parse failed:…

Neojet
- 1
- 1
0
votes
0 answers
I have a angular project with version 11, I am upgrading my project to latest angular 15 or 16
I have an angular project with version 11, I am upgrading my project to latest angular 15 or 16.I have upgraded sucessfully till 13, but when I am upgrading from 13 to 14 angular version I am getting below compilation issue.
enter image description…

jayachandra
- 1
- 1
0
votes
0 answers
Gzipper with angular 15 for reducing size of js files
I'm using the gzipped utility to reduce the size of the main.js file with angular 15. However, I am not able to reduce the size of main.js as well as other js files for production.
Following is the link which I already followed, but no success.
How…

Danish
- 1
0
votes
0 answers
In angular lazy loading component mat datepicker not closing after it opens
I am using angular and angular material v15. In lazy load component I am using material date picker. When I am going select date from it after selecting date it is not closing.
I imported all the necessary modules in shared module file.
The date…

Amii
- 1
- 2
0
votes
0 answers
Detect pending changes through reusable code in all edit pages in angular to alert user
As part of one of the requirements, I need to find if user have pending changes and if he hit back button or hit refresh then need to alert. We are using canDeactivate angular guard to prevent on the single page but we need to do it across all the…

Mukesh
- 53
- 6
0
votes
0 answers
Removing RelativeLinkResolution on angular upgrade to v15 does not load div component
The page contains a navigation bar with drop down menus. If I select the first dropdown option, a list of reports is displayed, and on clicking second option, another list of reports is displayed. Since I have upgraded to angular, the first option…

SRawat
- 45
- 8