I want to build a project using pure angular1 angular-ui-router. I follow the previous routine, but I don’t know why it can’t run. I really can’t see what’s wrong. I’ve used the scaffolding too much, and suddenly it doesn’t work anymore when I don’t need it. Please help! ! ! Pictured above!
Version
AngularJS v1.6.4
angular-ui-router v1.0.3
Directory structure
index.html
app.js
listCtrl.js
detailCtrl.js
list.html
detail.html
仅有的幸福2017-07-04 13:46:42
angular.module('tempApp',[]) //声明模块
If you pass only one parameter when calling this method, you can use it to reference the module. For example, the tempApp module can be referenced through the following code:
angular.module('tempApp')