Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.0/css/foundation.css">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.10/angular.js"></script>
  <title>Compile Angular</title>
</head>
<body>
<a href="javascript:(function(){   
    var $ = angular.element, $0, $scope, $compile, $element,
    template = prompt('Input template');
    if(!$0) $0 = document;
    $scope = $($0).scope();
    $compile = $(document).injector().get('$compile');
    $element = $('<div/>').append(template);
    $compile($element)($scope);
    $scope.$apply();
    alert($element.html());
})();" class="button  expand medium">Compile Angular</a>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
stevermeisterpro
0viewers