打开ABP的事例项目SimpleTaskSystem.WebSpaAngular 中LayoutView
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
<!-- 添加对ABP系统运行时动态创建的脚本文件的引用 -->
<script src="~/api/AbpServiceProxies/GetAll?type=angular"></script>
<script src="~/AbpScripts/GetScripts" type="text/javascript"></script>
1).<script src="~/api/AbpServiceProxies/GetAll?type=angular"></script>
Abp.WebApi.Controllers.Dynamic.Scripting.AbpServiceProxiesController
Abp\Framework\scripts\libs\requirejs\plugins\service.js
define(function () { return { load: function (name, req, onload, config) { var url = abp.appPath + 'api/AbpServiceProxies/Get?name=' + name; req([url], function (value) { onload(value); }); } }; });