How to handle multiple JS libraries with different loading times in Angular?

前端 未结 3 1277
渐次进展
渐次进展 2021-01-23 15:13

I am just learning Angular and I have some questions regarding the architecture of my app.

The project I will be working on will be using allot of external libraries: jQ

3条回答
  •  抹茶落季
    2021-01-23 15:34

    In short go http://slides.com/thomasburleson/using-requirejs-with-angularjs#/

    route.

    However now suffer having to put the defines and requires everywhere. For a large application this may get messy if not planned carefully. Use grunt requirejs plugin for builds because without this things would be wash.

提交回复
热议问题