angular.js - How to build an angular1 project if other build tools are not applicable
怪我咯
怪我咯 2017-07-04 13:44:42
0
3
1175

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

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
仅有的幸福
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')
学习ing

It’s correct to use .when! Are you sure you use .state?

ringa_lee

What are you going to say wrong about your report

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template