Skip to content

Adjusts the behaviour of angular.module so as to make module retrieval and creation order agnostic.

License

Notifications You must be signed in to change notification settings

sballew/angular-module-shim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-module-shim

Install

bower install --save angular-module-shim

Rationale

Adjusts the behaviour of angular.module so as to make module retrieval and creation order agnostic.

In other words you can append components onto modules without worrying whether the module has been explicitly created yet.

Particularly useful when your Angular project has a scalable/granular file structure with module creation and retrieval happening in individual files but your build process is just concatenating app files together in an arbitrary order.

Makes the following code legal:

angular.module('foo')
    .controller('FooCtrl',function () {});

angular.module('foo',['bar','baz']);

Thanks/links

About

Adjusts the behaviour of angular.module so as to make module retrieval and creation order agnostic.

Resources

License

Stars

Watchers

Forks

Packages

No packages published