angular-module Questions
2
Solved
Right now, using Angular v5, while using lazy loading, I load all my providers in app.module.ts which I guess isn't maybe the best strategy because this won't speed up my app boot time, specially b...
Wriest asked 12/10, 2017 at 11:33
2
Solved
I am working on an Angular application that has lazy loading implemented. I tried experimenting with lazy loading but decided that I do not yet want to implement it in my application. This is my ap...
Wheelock asked 8/10, 2017 at 1:3
1
Solved
I am exporting a custom component in my AppModule but can not use it in another module, which is being imported in the AppModule. I thought exported components are visible globally?
I am trying to...
Shandy asked 23/9, 2017 at 16:18
1
Solved
I've a few classes I want to be just a plain bean/DTO class, they aren't display @component classes, they're not @Pipe classes nor should they be @Directive (at least I don't think it should be!).
...
Jankell asked 15/9, 2017 at 18:28
2
Solved
I'm getting used to Angular 2 but I have a few questions concerning the app.module.ts file.
Why do I have to do the imports in this file since I will be doing
the inputs again in the app.componen...
Mateo asked 29/8, 2017 at 14:55
1
Solved
Is it somehow possible to load different modules in my angular 2 app runtime, from different servers and if so, how can I achieve this?
I would like to have my app load different components from t...
Mccarthy asked 22/3, 2017 at 14:1
1
I created Angular Library (ngx-wig) and I would like to provide an ability to extend its functionality by using plugins.
What would be the best place to declare plugin in Angular? (may be somethin...
Garofalo asked 20/6, 2017 at 13:31
2
Solved
I have a module with the routes of my app. One of this routes is a lazy loading module.
The problem is that this lazy loading module haves inside a routes for child components. But on my router co...
Glop asked 4/6, 2017 at 16:4
2
Solved
I'm learning Angular 2+ and I'm having a hard time understanding the role of imports/exports in an ngModule. More specifically why is important to import a module if you're going to import it anywa...
Vita asked 29/1, 2017 at 23:1
2
Solved
I have upgraded an ever-growing ng2 app to RC5 and have plopped all my components/pipes into one fat main module. To fight against the bloat, I was trying to carve my app into separate modules (als...
Flavoring asked 17/8, 2016 at 19:21
1
Solved
There are
controllers
constants
directives
services
factory
run
config
filters
functions of angular.js. What is the calling order of all these modules?
Elm asked 14/7, 2016 at 12:25
4
How can I create a directive without linking it to a specific module which can be used in any module, such as the build-in directives.
Kythera asked 19/11, 2013 at 12:32
1
Solved
angular.module('mod1', [])
.directive('myDir', ($timeout) => {
return {
///....
}
});
angular.module('myApp', ['mod1'])
<html ng-app="myApp">
<body>
<my-dir valu='blabla...
President asked 18/1, 2013 at 21:17
© 2022 - 2024 — McMap. All rights reserved.