Let me provide some context about my current setup. I am working on Windows7, using StS IDE, pivotal tc server, and Google Chrome.
I have developed an AngularJS application. Below is the code for my index.jsp:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en" ng-app="myApp" class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>My AngularJS App</title>
<!-- scripts and stylesheets -->
</head>
<body data-ng-app= "myApp">
<ul class="menu">
<li><a href="#/view1">LookUpCodeStyle</a></li>
<li><a href="#/view2">AccountMaster</a></li>
</ul>
<div data-ng-view></div>
</body>
</html>
When I deploy it on the server, the following errors are thrown:
Uncaught TypeError: undefined is not a function
Uncaught Error: No module: ngResource
The issue seems to be with this line of code:
<body data-ng-app= "myApp">
Eclipse shows an error stating:
Cannot find module with name myApp.
Here is a snippet from myApp.js file:
angular.module('myApp', [
'ngRoute',
'myApp.form',
'myApp.form2'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/view1'});
}]);
All files are being loaded as per the network check. Any assistance would be greatly appreciated.