We have, unfortunately a multi page application that we've been running with AngularJS. Now we're trying to migrate to Angular, as LTS approaches. We used to populate some part of our templates with the server data, rendering html as follows:
<div class="some-class" ng-controller="SomeCtrl as ctrl">
<div>...</div> <!-- Render some data from server -->
<div sec:authorize="isRememberMe()">...</div> <!-- Use some Thymeleaf security tags -->
</div>
However, now that the components are already on the client, I'm looking for ways to manipulate templates with html rendered by the server. I've tried with ng-content
which is useful for some cases, where I can bootstrap the component itself outside app-root
like Render Angular component outside the main app. But when the template is in component itself, this ability is gone as well.
An alternative would be rendering the page as a non-Angular, conventional html page (not a component), and accessing some basic functionality that could be provided by Angular. The approach we used in the past as well allowed this, but I have no idea how I could achieve this.
Is there a walkaround for what I'm looking for?