I want create a component like a template. For example, instead of writing this everywhere:
<div class="myClass">
<div class="myHeader" id="headerId"> Title </div>
<div class="myContent" id="contentId"> <<Some HTML code>> </div>
</div>
I want to use a component like:
<my-component title="Title" headerID=headerId contentID=contentID>
<<Some HTML code>>
</my-component>
How can I implement something like these in Angular2?
<<Some HTML code>>related to the question?