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
1
vote
2 answers
Angular library build error on secondary entry points "Could not load... (imported by...) from memory
I just upgraded my library from angular 12 to 13 then 14 then 15... was working fine in 14 but it doesn't compile anymore in angular 15.
My TSconfig set target=ES2020 and module=ES2020
I have multiple secondary entry points and dependeces between…

user2487719
- 11
- 2
1
vote
0 answers
Can npm library use standalone components?
I'm using standalone components in my Angular 15 app, and I'm realizing that 4-5 of them are going to be useful across projects, so I considered moving them into an npm library. Everything I know about libraries though is that they're done via…

Gargoyle
- 9,590
- 16
- 80
- 145
1
vote
1 answer
Angular service promise response test using jasmine
I created a project and it contain a service which return a promise boolean response. So, I wrote spec code to test the code and its falling. The error as below,
Expected 'yes' to be 'no'.
please help me to identify the issue which I did when…

K.G.K.Thilina
- 111
- 2
- 11
1
vote
1 answer
Error when trying to import a standalone component in a module
I recently upgraded my project from Angular 13 to Angular 15. And now I'm trying to make some of the existing components independent.
I'm trying to use a standalone component in a regular NgModule but I get this error:
Class…

mahbub kh
- 41
- 5
1
vote
1 answer
Unable access private variable outside the constructor
I am running my angular app in kali linux OS. the app was built successfully, but it throws error in loading. the error is shown below
main.ts:12 TypeError: Cannot read properties of undefined (reading 'select')
at new UserService…

sai santosh
- 13
- 3
1
vote
1 answer
Share data between 2 Angular micro frontend apps that reside in different repository
I have 2 angular micro frontend apps residing in different repository
Angular shell app -- Repository 1
Angular Micro frontend app1 -- Repository 2
Angular Micro frontend app2 -- Repository 3
Is there any way to share data between shell app and…

Warrior
- 5,168
- 12
- 60
- 87
1
vote
1 answer
Angular 15: Appending to provided values when same token is provided in scope
For example, parent scope provides the string "parent" with SOME_TOKEN, then when the child provides the same token (lets say with "child"), it appends to a list of values provided by that same token, making it ["child", "parent"]. I want this…

ertucode
- 560
- 2
- 13
1
vote
3 answers
Angular v15, no arguments named $title or $input
I'm doing the following and trying to follow as good as possible the angular documentation but I'm facing the following error
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: No arguments named $title…

Raphaël Balet
- 6,334
- 6
- 41
- 78
1
vote
0 answers
What could be the problem when updating Angular 14 to version 15 causes "ng serve" to fail due to "Module parse failed: Unexpected TOKEN"?
I'm trying to update the Angular v14 to v15. We are using the hybrid application, with just a few AngularJS components left to rewrite. With v14 we got the same error, but we managed to fix it by putting paths of those .scss files in the…

Emilija
- 89
- 7
1
vote
2 answers
Is it possible to inherit base class from shared module in Angular without explicit import
In my project there are many "base" component classes. Furthermore, the project is to be divided into several other modules, in which I simply wanted to use the share module as a base classes source.
I hoped that it would be possible to use just one…

user4662448
- 41
- 5
1
vote
1 answer
Type 'null' is not assignable to type 'ValidationErrors'
So, my issue is I am trying to build a custom validator on Angular 15, and I get an error message that tells this:
Type 'Observable<{ titleAlreadyExists: boolean; } | null>' is not assignable to type 'Observable'.
Type '{ titleAlreadyExists:…

Tamsin-chan
- 15
- 2
1
vote
4 answers
How to disable an input FormControl in a Reactive Form with a condition in Angular 15?
I have a form where I can input a student Id. Below that are two input boxes,
full name and email. When I load the page, only the student Id input box should be enabled and the two inputs below it are disabled. When I enter the student Id and if it…

jo1718
- 37
- 1
- 7
1
vote
1 answer
Angular Reactive Forms ngSubmit not working for single input control
I have a issue while using Angular reactive forms.
Please check this forked Stackblitz example from official Angular reactive forms docs, name editor form.
In this example form has only one input control.
I am using ngSubmit on

CodeAndCode
- 69
- 1
- 7
1
vote
2 answers
How to filter with pagination efficiently with millions of records in mongodb?
I know there are a LOT of questions regarding this subject. And while most work, they are really poor in performance when there are millions of records.
I have a collection with 10,000,000 records.
At first I was using mongoose paginator v2 and it…

Hikaros
- 101
- 1
- 12
1
vote
1 answer
NgOptimizedImage warning
I'm trying new angular 15 feature to improve image performance and I came across this warning.
`The NgOptimizedImage directive (activated on an
element with the `ngSrc="/assets/fascinating.png"`) has detected that the intrinsic image is…

FedeJs
- 23
- 5