Top "Angular-module" questions

You can think of an Angular/AngularJS module as a container for the different parts of your app – controllers, services, filters, directives, etc.

Load ngModule and its components based on conditional in Angular

I'm new in angular and I was wondering if it's possible to load and module and its components I made …

angular angular-module
How to use directive that sits in a different module

angular.module('mod1', []) .directive('myDir', ($timeout) => { return { ///.... } }); angular.module('myApp', ['mod1']) <html ng-app="myApp"> <…

angularjs angular-directive angular-module
Custom RouteReuseStrategy for Angular's child module

I want to use this custom route reuse strategy for just one module: export class CustomRouteReuseStrategy extends RouteReuseStrategy { public shouldDetach(…

angular angular-routing angular-module angular-router
What does the app.module.ts file serve for, what should I do inside of it?

I'm getting used to Angular 2 but I have a few questions concerning the app.module.ts file. Why do I …

angular import angular-services angular-module
Exporting enums in Angular modules

Does anyone know if it’s possible to export enums in Angular modules? If not, are there any best practises …

javascript angular enums typescript2.0 angular-module
Angular class is not an Angular module

When I build my Angular library, publish it to npm, and use it as a dependency in another project, whenever …

javascript angular typescript npm angular-module
How should I include model classes in an Angular module?

I've a few classes I want to be just a plain bean/DTO class, they aren't display @component classes, they're …

javascript angular typescript angular-module
What is the calling order of angularjs functions (config/run/controller)?

There are controllers constants directives services factory run config filters functions of angular.js. What is the calling order of …

javascript angularjs angular-directive angular-services angular-module