Currently, I am using the Play Framework to develop a REST service and I would like the front end to be built with Angularjs in order to make rest calls. I have configured a route provider as follows:
angular.module("getAbscencePlans", ["getAbscencePlans.services"]).
config(function ($routeProvider) {
$routeProvider
.when('/plans/:companyId', {templateUrl: '/assets/views/plans.html', controller: StoryListController})
//.when('/plans/new', {templateUrl: '/assets/views/create.html', controller: StoryCreateController})
.when('/plans/plan/:planId', {templateUrl: '/assets/views/detail.html', controller: StoryDetailController});
});
My index page includes the following:
ng-app="getAbscencePlans"
within the html tag at the top of the document. However, when I navigate to , I encounter an "Action not found" error. Even though I have specified a static resource for the index page in my routes file, I assumed that my routeProvider would handle everything else. What could I be doing incorrectly? :(