AngularJS get html element
<p>I'm using angularjs, and I want to obtain the html element by simply mark an ng-tag.</p>

<pre><code>&lt;div ng-xxxx="myDiv"&gt;&lt;/div&gt;

console.log($scope.myDiv); //&lt;div ng-xxxx="myDiv"&gt;&lt;/div&gt;
</code></pre>

<p>Can someone tech me how it can be done?</p>