What is angular-loader.js for?

后端 未结 4 1710
终归单人心
终归单人心 2021-01-31 07:19

I saw a similar question on the Google groups and also here on Stackoverflow. Both times the question was not answered. The code in this file doesn\'t make it very clear about w

4条回答
  •  情话喂你
    2021-01-31 07:48

    Angular modules solve the problem of removing global state from the application and provide a way of configuring the injector. As opposed to AMD or require.js modules, Angular modules don't try to solve the problem of script load ordering or lazy script fetching. These goals are orthogonal and both module systems can live side by side and fulfil their goals.

    http://docs.angularjs.org/tutorial/step_07#anoteaboutdiinjectorandproviders

提交回复
热议问题