angular-module Questions

3

In every component I have to import this CommonModule to use directives like NgIf and so on. I want a way of injecting this module in all my modules. @Component({ selector: 'app-register', stand...

5

Solved

I have an app that I want to extract two builds of it. First is a build that contains the whole app. Second one is an app that contains only one of my modules. And it has a separate routing module ...
Kala asked 23/11, 2021 at 14:44

4

Solved

I created an Angular-Library which is outside of my App-Workspace. The result is that I have two different workspaces. My first approach was building my Library and link /dist folder with my App. T...

3

Solved

I am trying to figure out how to use useFactory as an async function in Angular 11. Right now I have this: import { ApolloClientOptions } from 'apollo-client'; import { FirebaseService } from './fi...

8

Solved

I have Angular 2.0.0 app generated with angular-cli. When I create a component and add it to AppModule's declarations array it's all good, it works. I decided to separate the components, so I c...
Jolly asked 20/9, 2016 at 18:55

3

I am getting above error even though I have imported CommonModule in all related modules having NgIf or NgFor and BrowserModule is only imported once in app.module.ts What else I can do please hel...
Configuration asked 15/1 at 13:48

27

Solved

I'm trying to use a component I created inside the AppModule in other modules. I get the following error though: "Uncaught (in promise): Error: Template parse errors: 'contacts-box' is not a ...
Counterblast asked 8/6, 2017 at 8:1

2

Solved

I'm seeking clarification on the best practices regarding the usage of standalone components and modules in Angular 14. Given the introduction of standalone components as a new concept in Ang...
Evangelicalism asked 24/11, 2022 at 9:26

3

Solved

Lets say I have a simple module AppModule which has many imports, declarations and providers. Now I want to write a test for a component ListComponent which is located in this module's declaration ...
Borisborja asked 14/2, 2018 at 14:13

6

I use angular 9 and I want to do lazy load and I do app-routing { path: '', loadChildren: () => import("./components/login/login.module")//.then(m => // m.LoginModule) } and after I cre...
Rudder asked 5/5, 2020 at 13:44

5

Solved

I want to import all angular material modules and use into overall angular project templates.

2

I want to have a route in my app where I could list all existing routes in the application. I'm in Angular 9 with Ivy and use the dynamic import for lazy loading. The application have some modules ...
Deserve asked 30/6, 2020 at 14:38

3

Solved

I wanted to create a feature module which will handle the front end for an upload. upload.component.html No errors. <input type="file" #file style="display: none" (change)="onFilesAdded()"...
Dusky asked 27/7, 2019 at 16:52

3

Solved

When I build my Angular library, publish it to npm, and use it as a dependency in another project, whenever I try to import on of my module classes into my app.module.ts, and get this error Class T...
Sillsby asked 19/7, 2019 at 22:2

7

Solved

I am working on an Ionic app ( 2.0.0-rc0 ) which depends on angular 2 . So the new introduction of ngModules is included. I am adding my app.module.ts. below. import { NgModule } from '@angular/co...
Trophoblast asked 28/9, 2016 at 19:35

2

Solved

Error compiler.js:215 Uncaught Error: Template parse errors: Can't bind to 'ngbCollapse' since it isn't a known property of 'div'. ("][ngbCollapse]="isHidden"> I have a NavbarComponent and a ...
Covert asked 10/9, 2018 at 20:5

2

I have an Angular web app (client - Angular 9, server - Java), and now I want to add new components to be rendering on the server (e.g. Express-engine) using Angular universal. My goal is to keep r...

3

Solved

What I'm using Angular What I'm trying to do I have a loading component I want to reuse across multiple modules What I've done I've created a new module called 'loading-overlay' Inside th...
Frizz asked 15/11, 2017 at 10:37

2

Solved

I am pretty new with Angular and Firebase\FireStore and I am finding the following difficulties trying to add Firestore connection to my project. I was following the official documentation to add i...

5

Solved

I have the following routing paths for a module of my Angular app: @NgModule({ imports: [ RouterModule.forChild([ { path: 'documents', data: { myObject: MyConstants.OPTION_ONE }, children: [...

2

Suppose there exists a Javascript library written in plain Javascript and commonly used on vanilla, non-frameworked websites. How does one go about creating an Angular library that can easily be np...
Teston asked 16/7, 2018 at 4:26

2

What I want to achieve: I've created an Angular module and I want to npm install it from my GIT repo (I don't want to use npm publish, because it is a private code) in other projects. I'm using n...
Dashboard asked 13/2, 2018 at 10:43

2

Solved

Does anyone know if it’s possible to export enums in Angular modules? If not, are there any best practises to ship enums within Angular modules? // not working example // i dont know how to export...
Varro asked 26/9, 2017 at 6:34

2

Solved

I have created an Angular Library. In my Library I would it like it to be clean by having feature modules inside them: Example: Library NavigationModule NavigationSideBarComponent NavigationTo...
Toehold asked 2/1, 2019 at 20:33

2

Solved

I am trying to use an app-wide service (UserService) that stores authenticated user details. I have set up some routes but found that UserService is instantiated per route. I want them to share the...

© 2022 - 2024 — McMap. All rights reserved.