ngModule

More powerful than ngApp

Added by: Sam Deering

GitHub

Repository

luisperezphd/ngmodule

Stats

Stars: 62

Watchers: 62

Forks: 10

Module Description

ngModule

As you AngularJS application gets more complex you will likely come to discover that the ngApp directive has two fairly big limitations:

  1. You can only have one ngApp per page.
  2. You can only associate a single module with a single HTML element

The ngModule directive gets around these limitations. It allows you to associate more than one module with more than one element.

For a detailed explaination read the original blog post this directive was derived from:

http://www.simplygoodcode.com/2014/04/angularjs-getting-around-ngapp-limitations-with-ngmodule/

You can also install it using bower: (Thanks to Kyle Kemp)

bower install ng-module

Module stats last updated: 2017-03-08 15:00:05

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!