marcoslin / angularAMD

Facilitate use of RequireJS in AngularJS
http://marcoslin.github.io/angularAMD
MIT License
734 stars 171 forks source link

Global in example #93

Closed DrewML closed 10 years ago

DrewML commented 10 years ago
define(['angularAMD', 'directive/navMenu'], function (angularAMD) {
    var app = angular.module(app_name, ['webapp']);
    ...
    // `navMenu` is automatically registered bootstrap 
    return angularAMD.bootstrap(app);
});

In the first line within the define call, the global for "angular" is being utilized. Following the "RequireJS" way, this should be using the local var "angularAMD." This is already being done within the "return" statement.

marcoslin commented 10 years ago

I use the global angular in an attempt to make the code as readable as possible for angular users. Can you share some documentation in RequireJS as how is the best way to do this?

marcoslin commented 10 years ago

Issue closed due to no reply from user.