Insert a template into a htlm file

To avoid redundancy i need to load or import some html-code. I can’t just write the code in the app.html file, because not every page should have a footer.

Is there a command like “load (’/somePath/filename.html’))” which i can use in a html-file?




Angular doesn’t want you to think in terms of HTML fragments. It wants you to think in terms of components. Can you abstract this into a component and then just reuse that?

1 Like

Yes. It worked. Thanks for the advise. I just learned the component-concept. Pretty