npm.io
0.3.0 • Published 10 years ago

dolphin-angularjs-module

Licence
—
Version
0.3.0
Deps
0
Vulns
0
Weekly
0

Installation

npm install dolphin-angularjs-package --save

AngularJsConfigurationFactory

The factory has default methods:

methods:

  • addModule - registration custom module

When you call "addModule" the plugin will read all folders in public folder:

package_folder
   public
      controllers
      directives
      routes
      services
      providers
      filters
      vendor
      views
      angular_module.js // will include firstly

Access to view folder you can get like this: /Name_Of_Module/views

Notice! you don't need to use AssetManager to merge all files from public folder!

Example
myModule.configureFactories(function (AngularJsConfigurationFactory) {
    //the first parameter is name of module for AngularJS
    //the second is variable of module
    AngularJsConfigurationFactory.addModule('test', test);
});