search

Home  >  Q&A  >  body text

angular.js - How angularJs implements the introduction of different js files into different pages

I want to divide directories according to functions, but how can I introduce different js files into different pages? I can’t load all the js files of all projects at once, right?

Additional: What we need to do now is a more complex backend system, video and picture upload content. Can Angular integrate these plug-ins? The newbie is very panicked==

滿天的星座滿天的星座2797 days ago627

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-05-15 16:54:08

    angularJs project practice: module division and directory organization

    How to build a single-page application with AngularJS and load JS files according to requirements

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-15 16:54:08

    Angular can only import js files that already exist in the project as modules in the corresponding place. It cannot achieve what you said by importing the project in the corresponding place. If you want to realize different interfaces loading different js, you can only use other technologies

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-15 16:54:08

    The author can use requirejs + angularjs

    reply
    0
  • Cancelreply