I have bundled the required libraries as following.
bundles.Add(new ScriptBundle("~/bundles/libraries").Include(
"~/Content/js/jquery.1.10.2.js",
"~/Content/js/jquery.ui.1.10.3.js",
"~/Content/js/angular.js",
"~/Content/js/ng-grid-2.0.11.min.js",
"~/Content/js/ng-dialog.0.1.6.js",
"~/Content/js/underscore.1.5.0.js",
"~/Content/js/jquery.easyWizard.js",
"~/Content/js/bootstrap.js"));
and referred it as @Scripts.Render("~/bundles/libraries")
in the _Layout
but I am getting the following error:
Uncaught ReferenceError: jQuery is not defined
and Angular is not getting loaded.
The following code works:
<script src="~/Content/js/jquery.1.10.2.js"></script>
<script src="~/Content/js/jquery.ui.1.10.3.js"></script>
<script src="~/Content/js/angular.js"></script>
<script src="~/Scripts/Angular/ng-grid-2.0.11.min.js"></script>
<script src="~/Content/js/ng-dialog.0.1.6.js"></script>
<script src="~/Content/js/underscore.1.5.0.js"></script>
<script src="~/Content/js/botstrap.js.js"></script>
<script src="~/Content/js/jquery.easyWizard.js"></script>
Where did I went wrong?