I've got AngularJS application that is loosely wrapped by an Asp.Net MVC page. The AngularJS stuff ignores the Asp.Net and does its own routing, ng-includes, and so on, so pages are constructed from html partials that Asp.Net knows nothing about.
I've run into a situation where it would be very useful to have an Asp.Net control / MVC extension in one of my pages, but the pages are deep in Angular land. Is there any practical way of getting this working without restructuring the whole application?
This is sort of what I'm trying to accomplish:
index.cshtml:
<body ng-app="App" ng-controller="Controller">
<div ng-include src="angularView.html">
angularView.html:
<div ng-include src="aspNetView.cshtml">
aspNetView.cshtml:
@Html.Something()
Obviously the ng-include aspNetView.cshtml won't work, but this is what I'm trying to do: Asp.Net stuff inside the Angular stuff.
(My specific use case is trying to put in a DevExpress grid using @Html.DevExpress().GridView(...)
, but the problem is still general)