title: Equivalent of $compile in Angular 2
body: <p>I want to manually compile some HTML containing directives.  What is the equivalent of <code>$compile</code> in Angular 2?</p>
  
  <p>For example, in Angular 1, I could dynamically compile a fragment of HTML and append it to the DOM: </p>
  
  <pre><code>var e = angular.element('&lt;div directive&gt;&lt;/div&gt;');
  element.append(e);
  $compile(e)($scope);
  </code></pre>