title: angularJS $compile is not defined
body: <p>I'm trying to learn AngularJS and I'm trying to dynamically compile some DOM elements... 
  I've tried the demo:</p>
  
  <pre><code>try {
          var templateHTML = angular.element('&lt;p&gt;{{total}}&lt;/p&gt;'),
              scope = ....;
  
          var clonedElement = $compile(templateHTML)(scope, function(clonedElement, scope) {
            //attach the clone to DOM document at the right place
          });
  
          //now we have reference to the cloned DOM via `clone`
  } catch (ex) {
  alert(ex.message);
  }
  </code></pre>
  
  <p>but all I get back is a "$compile is not defined"</p>
  
  <p>HELP!</p>