asp.net mvc - Set in the BundleConfig but load script fail - MVC4 Razor -
i have set bundleconfig file :
bundles.add(new scriptbundle("~/bundles/mytest").include("~/scripts/test.js").include( "~/scripts/test.init.js")); bundles.add(new scriptbundle("~/bundles/angular").include("~/scripts/angular.min.js"));
i call them layout :
@scripts.render("~/bundles/angular") <!-- error --> @scripts.render("~/bundles/mytest") <!-- success -->
where's error, please ?
bundling in asp.net mvc ignore files ending .min.js. have add development version of file.
bundles.add(new scriptbundle("~/bundles/angular").include("~/scripts/angular.js"));
Comments
Post a Comment