I encountered an error message that says the module 'route' is not available. I'm not sure why this is happening, any thoughts?
"Uncaught Error: [$injector:nomod] Module 'route' 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."
I'm confused because I made sure to register my modules properly.
module.requires.push("ngRoute");
module.requires.push("route");
angular.module('route') // create new Angular Module
.config(['$routeProvider', function ($routeProvider: angular.route.IRouteProvider) {
$routeProvider.otherwise('/');
$routeProvider
.when('tlob', {
templateUrl: 'partial/layout.html'
})
}]);
Additionally, at the top of the page, I included:
///<reference path="../../typings/tsd.d.ts"/>
/// <reference path="../../typings/angularjs/angular-route.d.ts" />