Lazy loading AngularJS modules with RequireJS

前端 未结 3 404
再見小時候
再見小時候 2020-11-30 07:22

Thanks to the great article from Dan Wahlin, I managed to implement lazy loading of Angular\'s controllers and services. However, there does not seem to be a clean way to l

3条回答
  •  囚心锁ツ
    2020-11-30 08:10

    I finalized my own implementation called angularAMD and here is the sample site that uses it:

    http://marcoslin.github.io/angularAMD/

    It handles config functions and out of order module definitions.

    Hopefully this can help other looking for something to help them with RequireJS and AngularJS integration.

提交回复
热议问题