I'm using angularjs and .NET MVC together. I'm using an initial _layout.cshtml page, but the rest of the routing is through angular.
However, for the login page, I want a different layout page and I can't figure out how to break-out of the angular routing and get back to the _viewStart.cshtml to pick another layout. In the _viewStart, I have something like this, but I never get to the _viewStart after angular starts to take over the routing.
@{
if(Request.Path.Contains("Login")) {
Layout = "~/Views/Shared/_Layout2.cshtml";
}
else {
Layout = "~/Views/Shared/_Layout.cshtml";
}
}