You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
define(['angular', 'services'], function (angular) {
return angular.module('myApp.controllers', ['myApp.services'])
.controller('MyCtrl1', ['$scope', 'version', function ($scope, version) {
$scope.scopedAppVersion = version;
}])
...
It would be preferable to be able to wrap the require.js define line into the angular.module line since the angular.module() is more concise but provides all the information that an AMD loader would require.
I would write an additional set of AMD methods that mimic the module so that the previous piece of code might look like this:
Further reductions are probably possible but that would be a nice beginning.
UPDATE
I have detailed my ideas on what I see as the problem and a potential solution. Please, comment on either page and I will update the proposal to fufill as a many expectations as possible.