I've got this files
lib/
|-angular.min.js
|-angular-route.js
|-angular-resource.js
index.html
package.json
The main index.html
<html ng-app="example">
<head>
<meta charset="utf-8">
<script src="lib/angular.min.js"></script>
<script src="lib/angular-route.js"></script>
<script src="lib/angular-resource.js"></script>
</head>
<body>
<script>
var app = angular.module('example', ['ngRoute']);
</script>
</body>
</html>
And the package.json
{
"main": "index.html"
, "name": "example"
, "version": "1.0.0"
, "window": {
"toolbar": true
, "frame" : true
}
}
But when I run the $ nw .
it throws me this error:
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.7/$injector/moduler...