search

Home  >  Q&A  >  body text

angular.js - External js loading execution problem when ui-router loads template

I used ui-router to create a multi-layered view. I loaded the template through ui-view and introduced the js files related to the template page in the index.html interface, but the template page js did not work at runtime! Why, here are the screenshots!

js was executed, but it didn’t work!

navTree.js:

Routing:

My routing is very simple, the structure has just been set up, there is nothing!

伊谢尔伦伊谢尔伦2782 days ago666

reply all(1)I'll reply

  • 阿神

    阿神2017-05-15 17:14:30

    Post part of your navTree.js code and the routing configuration code

    Give me a chestnut


    This is the routing configuration


    This is the controller

    reply
    0
  • Cancelreply