title: Angular - What's the best way to include html in multiple components?
body: <p>I need to put a loading in multiple components of my project. So instead of putting the same HTML over and over again across the components, I need to know what's the best way to not repeat code, but I don't know if this is correct thing to do. I have created a component called <code>loading-graphic</code>, which I bind it in every HTML file of the respective components. I read about <code>ngTemplateOutlet</code> and <code>ngContent</code>, but to be honest it doesn't make sense in my head to use it for this case (and I don't get it too... I'm a beginner on it). So, on what should I bet? Thanks.</p>