My code : index.html
<html ng-app='Arrows'>
<script data-main="main" src="require.js"></script>
<div ng-controller="My">
{{status}}
</div>
And main.js file
require(["jquery","underscore","backbone",
"marionette","angular"], function($ ,_,Backbone,Marionette,angular){
debugger
var app = angular.module("Arrows")
angular.element(document).ready(function () {
angular.bootstrap(document, ['Arrows']);
});
app.controller('My', function($scope) {
$scope.status = 'hello! Its working!';
});
})
I have problem :
Uncaught Error: [$injector:modulerr] Failed to instantiate module Arrows due to: Error: [$injector:nomod] Module 'Arrows' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.