JSFiddle - React, Tailwind, and code Playground
by blesh
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"></script>
<html ng-app>
<head></head>
<body ng-controller="Root">
<h1>Selector Test</h1>
<p> elem is: {{elem}}</p>
<div>foo</div>
</body>
</html>
JavaScript
function Root($scope) {
// you can't write out the element itself as JSON,
// because of circular object references,
// so I'll just write out the inner html.
$scope.elem = angular.element('div').html();
}