search

Home  >  Q&A  >  body text

angular.js - How to build an angular1 project if other build tools are not applicable

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

怪我咯怪我咯2702 days ago1176

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福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')

    reply
    0
  • 学习ing

    学习ing2017-07-04 13:46:42

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

    reply
    0
  • ringa_lee

    ringa_lee2017-07-04 13:46:42

    What are you going to say wrong about your report

    reply
    0
  • Cancelreply