I have an application in development that is in Angular2 using AngularCli, and I want to use it as a Layout (like MasterPage) for another project. Like a big "SPA system".
For example, in the menu we will have the following:
The framework works at http: // localhost: 90 and XPTO works at http: // localhost: 91 . Both of them work on AngularCli.
I want to create a structure that, when I click on page A or page B, the browser does not restart, and it will bring the user an "application style", loading the page as a SPA of sites.
The main reason is to reuse Javascripts, CSS, and many other files from the Framework project for the other 20 projects. I do not want to replicate all components, files, etc. In these projects.
Today we use MVC3 and RazorGenerator to create .cshtml as a DLL to reuse .cshtml from the Framework for other modules.
But we want to go AngularCli. Is there any way to do this? If this is not the case, is there a way to create a template in AngularCli that can be reused by components and other files?
Thank!
source
share