Questions tagged [shared-module]
16 questions
1
vote
1 answer
Problem with SharedModule Angular getting Error error NG8001: 'app-master-panel' is not a known element
i have a problem in Angular 11 with SharedModule. All is configured good but still i am getting this message even the configuration is correct. I configured my SharedModule with shared components declared and exported, then i have imported in…

Richard Aguirre
- 543
- 6
- 14
1
vote
3 answers
accessing component functions in shared modules
I have a shared module that contains common components such as headers and notification components. I have a another module called ProductModule which uses the notification component from the shared module and calls a function defined in the…

ONE_FE
- 968
- 3
- 19
- 39
1
vote
1 answer
Angular shared module exports component imported by another module
I have 3 modules. Lets call them StoreModule, BookModule, PaperModule. Store sells books, so store uses book. Book consist of paper, so uses paper, the exact same paper as store uses. And store uses paper as well. Here comes the problem! Now the…

Kiss Koppány
- 919
- 5
- 15
- 33
1
vote
1 answer
Shared Module exports
I have certain components in a module named 'button module' that I would like to use in my own custom module named 'products module'. The component in buttons module is a 'dropdown-buttons' component. I know that I have to create a shared module…

Ehsan Nissar
- 643
- 2
- 13
- 35
0
votes
1 answer
Component in angular not loading after declaring it in shared.module.ts
I have component called "graph" that was being used in only one component.
Now I want to use it in another component too, so I put it in shared.module.ts and deleted it from the "declarations" section of the previous module, but now the "graph"…

nonnodacciaio
- 21
- 6
0
votes
1 answer
Angular: Component's selector in SharedModule not working in feature module
Hey everyone I'm struggling to find my error here. Hopefully you can help.
Issue: SideNavComponent is inside SharedModule, I want to access it in my administration-main template lilke this:
What I've tried so…

Ashalya
- 1
- 2
0
votes
0 answers
Maven project as parent, gradle project as child
I currently have a couple of maven modules within my maven parent module. I'd like to add a Gradle project as a module to that maven parent project. Is there any way to do this?
parent (maven)
|-- back-end (maven)
|-- front-end (gradle) <-
|--…

kevinscholten
- 25
- 6
0
votes
0 answers
Best practices to creating ng shared module
I want to finally introduce different NgModules into the app. Currently we have one big AppModule that has everything, and for our new feature/page we want to create a new module. However, the question arises considering shared modules, components,…

Lossan
- 411
- 1
- 8
- 16
0
votes
2 answers
Angular 11 selected default value of mat-select populated with observable
I have a module ProgettiAzioniModule shared between two components SchedarioComponent and SituazioneClienteComponent.
This module consist of two mat-select:
…

Martina Muscariello
- 191
- 1
- 1
- 6
0
votes
0 answers
Angular shared module cause to load other shared module
In my angular 11 application, I am using the lazyloading routing feature and share module feature.
If I import the same module in two different feature modules, then I found angular download another middle js file. Below is my sample…

Md. Mustafizur Rahman
- 739
- 1
- 9
- 16
0
votes
1 answer
Ionic5: setting a footer on all app pages with a sharedModule and controlling it (on/off) from the app.component
I've created a new app using Ionic5 with a menu. I'm trying to use a Footer on multiple pages (now only on Home page). First I've created a SharedModule and imported in the imports' array of the app.module.ts. I've added the footer component in the…

Carlos Aguirre
- 1
- 1
0
votes
1 answer
Angular: Does a shared module bloat an app?
I am using Angular 8. I have a shared module. Some modules just use one or two components from the shared module. Does Angular always import the whole shared module or does it only import the used components and drop the others via tree…

YulePale
- 6,688
- 16
- 46
- 95
0
votes
3 answers
Should I add modules to Imports in SharedModule - Angular?
This is my SharedModule
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { IconModule } from…

DiPix
- 5,755
- 15
- 61
- 108
0
votes
2 answers
Not able to get Observable value into other modules component using shared services
Please check this GitHub repo https://github.com/nileshzala005/Service-demo
userService registered at root level.
I would like to get getUserLogin observable value into SharedModule's UserComponent. When user clicks on the button Send value to user…

Zala Nilesh
- 61
- 6
0
votes
0 answers
Access Parent Functionality from Child Module
How do I properly set up a child module within the shared module of the application without getting circular dependency warnings or is it bad practice to have modules within modules?
I have a shared module containing shared functionality across the…

Tjulu
- 79
- 1
- 9