angularjs - Angular views and ASP.NET MVC Views in the same folder -
I am developing an application in Angular and ASP.NET MVC. I would like to keep some angular partial and MVC partial in the same folder because they are logically related i. For example:
- /MyApp/Widgets/Image-config.html
- /MyApp/Widgets/Image-designer.html
- / MyApp / Widgets / Image.cshtml
I use it as a shared partial folder by adding it globally. The widgets that were made were able to create folders. AX:
ViewEngines Engine. Add (New RangerVisin {Partial View Space = New String [] {"~ / Widgets / {0}. Cshtml", "~ / View / {1} / {0} .cshtml", "~ / View / Share / { 0} .cshtml "}});
and copying web.config from the original view folder
However, now I get a 404 when angular HTML goes to get the template. Is there a way to configure widgets folder, so that it can serve both the static files and a place for my server side partial view?
What do I create controller methods and uses partial sequences, so my angular View . Cshtml
is also the URL for your angular view, then the partial view is the URL for the returning controller's action.
Comments
Post a Comment