I have a .Net web app running .Net Framework 4.6.1 with Razor and AngularJS 1.7.5 and we wish to migrate to Angular 8.
- Routing is being done in .Net.
- The HTML contains both Razor and AngularJS logic to render the UI.
Sample Razor/Angular HTML:
<div id="container" ng-controller="MyController">
@Html.Action("MyView", "Home")
</div>
Sample AngularJS logic Code:
angular.module('myApp').controller('MyController', ['$scope', function($scope) {
$scope.doSomething= function () {
//do stuff
}
}
]);
- We wish to do a hybrid migration. Is this possible?
- Would it be easier to rewrite the app from scratch?
- What are our options?
EDIT: This question is unique because it involves migrating a server-side rendered AngularJS .Net Application - Not client-side to Angular 8. I have heard of Angular Univeral which does just that but I want to know other options and if a hybrid approach is a possibility.