517 questions
0
votes
0
answers
17
views
How could mimic the module experience with Angular standalone components?
Since it looks like the modules in Angular are near the end of their life, and stand-alone components are the future, how can we provide dependencies in the same way as when a module is used?
With ...
1
vote
1
answer
70
views
Solve circular dependency by "overloading" modules in Angular
I am developing part of an application where we have some custom built generic components. One of these component is a GenericForm which we use for easily creating forms, and another component is ...
1
vote
1
answer
260
views
How to handle module imports specific to a library in an angular standalone app?
I have a library material-extension inside my angular workspace, in which I'm creating some components I require but Angular Material is lacking. In this extension I've installed the module ngx-editor,...
0
votes
0
answers
26
views
Can't bind to prop since it isn't a known property of component
Getting the error Can't bind to prop since it isn't a known property of component even though the component is present in the node_modules directory and the module is imported in the consuming module....
0
votes
1
answer
70
views
Why angular doesn't throw a selector collision error in this scenario?
Inspecting some code from my project, I've encountered a strange scenario in which I think Angular should throw an error at build time.
In my Angular app I have this index.html file with all the ...
1
vote
2
answers
75
views
Why don't my angular components realise that it's part of a module?
Disclaimer: I may be wrong about my understanding of this seeing as I have only been using Angular for little over a year (Angular 16.0.0).
Code
I have this component (SidebarComponent):
@Component({
...
0
votes
0
answers
281
views
Angular 19 module Import Issue: common module into Workspace
I have created an Ionic/Angular workspace with the following structure:
frontend/
│
├── common-reporting/
│ ├── src/
│ │ ├── Util2-service.ts
│ │ ├── ionic-common-component.ts
│ │ ├── ...
0
votes
0
answers
203
views
Angular app.module.ts not compiling, NgModule not declared, and component import issues
I created a basic Angular project in VS Code, but the app.module.ts file was missing, so I manually created it and added @NgModule. I then generated a new component named user and imported this user ...
1
vote
0
answers
185
views
Angular NullInjectorError: No provider for InjectionToken errror
I' m receiving the error NullInjectorError: No provider for InjectionToken IPublicationsRequestService! in my app when injecting my service in any component or resolver (all part of the module where ...
1
vote
1
answer
3k
views
How to create app.module.ts in an existing Angular 18 project?
I’m using Angular 18.2.8 and I’ve already created a project and worked on it. However, I noticed that the project does not include an app.module.ts file. After searching, I found that starting from ...
1
vote
1
answer
1k
views
How can I make an Angular service injectable only within a specific module?
I am trying to create a service in Angular that should only be injectable within a specific module, not accessible outside that module.
I have a service MyService that I want to restrict so it can ...
1
vote
1
answer
62
views
Component declared in a parent module not visibile inside a component rendered by ng-template
I have an app written in Angular 12.2.16 and I need to implement some components.
This specific part is about LayoutLoader (component+module)
In layout-loader/layout-loader.component.html there is <...
1
vote
1
answer
142
views
How to Override a Component from a 3rd Party Library in Angular?
I'm using an internal library that provides a generic solution for authentication, including a login page with a login form. For a specific application, I need to customize the login form by adding ...
1
vote
1
answer
5k
views
TypeError: Cannot read properties of undefined (reading 'ɵcmp') in Angular 18
I'm trying to make the sorting of table work for /users that is defined in UserListComponent. The sorting functionality was broken by introducing NavbarComponent.
I tired to switch to standalone ...
1
vote
1
answer
4k
views
Angular 18 component is imported as non standalone component but fails to render
How to wire correctly NavbarComponent into the template of app component?
app.component.html
<app-navbar></app-navbar>
<router-outlet></router-outlet>
main.ts
import {...