I have these files
lib/ |-angular.min.js |-angular-route.js |-angular-resource.js index.html package.json
Core 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 package.json
{ "main": "index.html" , "name": "example" , "version": "1.0.0" , "window": { "toolbar": true , "frame" : true } }
But when I run $ nw . this causes me this error:
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.7/$injector/moduler...
source share