Base solution for your next web application
Open Closed

Any way to mix Angular with other frameworks? #6925


User avatar
0
commondesk created

A while back we decided to move our backend to linix and chose to convert our AngularJs site to an Angular 7 site. We did this without fully understanding the implications of a single page application like Angular. Specifically we did not consider how much the loading time of opening pages in popup windows and iframes. Even with --aot and --prod enabled, we find that Angualr is too heavy weight to be used in some simple pages.

Is there any way to create a second angular site that does not have all of the ASPNETZERO classes installed, but have it as part of the project? We need a way to mix some of the typescript pages we've developed on screens that have NO, left or top bars. I'm not sure if this is an ASPNETZERO question or an angular question.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @commondesk

    You can create another angular app but use the AspNet Zero's server side APIs. In that way, your second app might be lighter.

    But, one question: Are you going to show those pages in AspNet Zero app ?

  • User Avatar
    0
    commondesk created

    These pages will not be shown in Aspnetzero.

    I found this article.

    https://medium.com/volosoft/building-a-simple-angular-universal-application-with-asp-net-boilerplate-hero-shop-c63f9a5249ae

    Are there other articles you wrote on this subject?

  • User Avatar
    0
    ismcagdas created
    Support Team

    @commondesk

    There is no other article. If you are not going to server your pages in AspNet Zero, you can create a lighter Angular app.