Search code examples
angularlayoutsaas

SAAS based application , want to have only one layout page for all modules


I have different sites developed in angular but i want to have one layout for all my websites.

Is there any possibility to use same layout page for all my websites, so design of layout can be same with-out doing it in each site?


Solution

  • I can see multiple ways going with that:

    Solution 1

    Create a stylesheet/component library and reuse that anywhere. Really nice guide here / docs here

    Solution 2

    Combine multiple applications in one. Based on the url, load the appropriate application, which can be developed almost independently. Excellent guide with the same rationale as the one you are trying to achieve

    For more specifics, please provide some code so that we can expand on it.