title: Angular2 Html inside a Component
body: <p>I want create a component like a template. For example, instead of writing this everywhere: </p>
  
  <pre><code>&lt;div class="myClass"&gt;
      &lt;div class="myHeader" id="headerId"&gt; Title &lt;/div&gt;
      &lt;div class="myContent" id="contentId"&gt; &lt;&lt;Some HTML code&gt;&gt; &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to use a component like:</p>
  
  <pre><code>&lt;my-component title="Title" headerID=headerId contentID=contentID&gt;
      &lt;&lt;Some HTML code&gt;&gt;
  &lt;/my-component&gt;
  </code></pre>
  
  <p>How can I implement something like these in Angular2?</p>