A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Nikku/requirejs-angular-define below:

nikku/requirejs-angular-define: A friendly integration of AngularJS into RequireJS powered applications

This project seamlessly integrates AngularJS into RequireJS based applications.

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.

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

Use under terms of MIT license.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4