I've just faced an interestring issue. So, what I have:
- ASP.NET MVC app;
- AngularJS app inside this app.
Well, I have a layout page:
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>LinkShortener</title>
@Styles.Render("~/bundles/css/")
@Scripts.Render("~/bundles/app/libs/")
@Scripts.Render("~/bundles/app/webapp/")
</head>
<body ng-app="app"></body>
Next, there is my Bundle.Config:
public static void RegisterBundles(BundleCollection bundles)
{
bundles.IgnoreList.Clear();
bundles.Add(new StyleBundle("~/bundles/css/").Include
(
"~/Content/Css/Bootstrap/*.css"
));
bundles.Add(new ScriptBundle("~/bundles/app/libs/")
.Include("~/App/Libraries/jQuery/jquery-1.9.1.js")
.Include("~/App/Libraries/Bootstrap/bootstrap.js")
.Include("~/App/Libraries/Core/angular.js")
.Include("~/App/Libraries/Core/*.js"));
bundles.Add(new ScriptBundle("~/bundles/app/webapp/")
.Include("~/App/App.js")
.Include("~/App/Resources/*Module.js").Include("~/App/Resources/*.js")
.Include("~/App/Controllers/LinkShortenModule.js").Include("~/App/Controllers/*Controller.js"));
}
When I open my page in Google Chrome, I see something like this:
script loading loop, the image goes here
It seems any script is beging loaded with the some parameter and then again and again and again... It it the first time I see this problem. The page is locked by this loop and finally dies.
Is there anyone who could guess what the magic is going on?
Thanks in advance.