I have this code in my app:
angular.module('App',['ngRoute', 'ngResource']).config ($routeProvider)->
$routeProvider.when('/app',
templateUrl: 'app.html'
controller: 'appController'
)
.controller 'appController', ($scope)->
console.log 'app controller called called'
$scope.message = 'this is my app'
However, when I visit /app
, nothing happens. I get no app controller called
message. I get no error messages in the console. Nothing at all. I don't really know how I can debug this problem if I'm not given any information.
Is there a way to make angular more verbose so it gives me errors and warnings?