我在BundleConfig.cs中添加了bundle,如下所示:
bundles.Add(new ScriptBundle("~/bundles/angular").Include("~/Scripts/angular.min*"));
在_Layout.cshtml中,我有以下内容:
<body> @RenderBody() @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/angular") @RenderSection("scripts",required: false) </body> </html>