requirejs-angular-define

A friendly integration of AngularJS into RequireJS powered applications

Homepage

Module License: MIT

Added by: Sam Deering

GitHub

Repository

nikku/requirejs-angular-define

Stats

Stars: 50

Watchers: 50

Forks: 10

Module Description

ngDefine

Build Status

This project seamlessly integrates AngularJS into RequireJS based applications.

Overview

Using ngDefine you can leverage RequireJS to package AngularJS modules into reusable components.

ngDefine('my.module', [
  'jquery',
  './bar',
  'module:ngResource',
  'module:my.other.module:my-other-module'
], function(module, $) {

  // define the module
  module.value("foo", "bar");
});

ngDefine allows you to declare both plain RequireJS dependencies and AngularJS modules that get resolved using RequireJS before the module definition callback is called. Read more about it in the docs.

Resources

Building the Project

  1. Fork + clone the repository.
  2. Install dependencies via npm install.
  3. Build the library via grunt.

License

Use under terms of MIT license.

Module stats last updated: 2017-06-17 16:00:03

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!