 value&#39;);

// observe changes to interpolated attribute
attrs.$observe(&#39;ngModel&#39;, function(value) {
  console.log(&#39;ngModel has changed value to &#39; + value);
});
}
</code></pre>
<h2 id="example">Example</h2>
<div class="alert alert-warning">
<strong>Note</strong>: Typically directives are registered with <code>module.directive</code>. The example below is
to illustrate how <code>$compile</code> works.
</div>

<p> 

<div>
  <a ng-click="openPlunkr('examples/example-example49')" class="btn p