angular-module-shim

WebJar for angular-module-shim

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-jedrichards-angular-module-shim
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

angular-module-shim
WebJar for angular-module-shim
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jedrichards/angular-module-shim

Download github-com-jedrichards-angular-module-shim

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-jedrichards-angular-module-shim/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-jedrichards-angular-module-shim</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-jedrichards-angular-module-shim/
implementation 'org.webjars.bower:github-com-jedrichards-angular-module-shim:0.0.4'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-jedrichards-angular-module-shim/
implementation ("org.webjars.bower:github-com-jedrichards-angular-module-shim:0.0.4")
'org.webjars.bower:github-com-jedrichards-angular-module-shim:jar:0.0.4'
<dependency org="org.webjars.bower" name="github-com-jedrichards-angular-module-shim" rev="0.0.4">
  <artifact name="github-com-jedrichards-angular-module-shim" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-jedrichards-angular-module-shim', version='0.0.4')
)
libraryDependencies += "org.webjars.bower" % "github-com-jedrichards-angular-module-shim" % "0.0.4"
[org.webjars.bower/github-com-jedrichards-angular-module-shim "0.0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.2.16,1.3)

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.0.4