nikku / Requirejs Angular Define
Licence: mit
A friendly integration of AngularJS into RequireJS powered applications
Stars: ✭ 48
Programming Languages
javascript
184084 projects - #8 most used programming language
ngDefine
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
- Fork + clone the repository.
- Install dependencies via
npm install
. - Build the library via
grunt
.
License
Use under terms of MIT license.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].