Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="test">
<test currentTime="ss"></test>
</body>
</html>
 
angular.module('test',[]).directive('test',function () {
   return {
    restrict: 'E',    
    link: function(scope, element, attrs, tabsCtrl) {
      console.log(element.attr('currentTime'));
    }    
  };
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers