Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <test1></test1> 
  <test2></test2> 
</body>
  
</html>
 
app=angular.module("app",[]);
app.directive("test1",function(){
    return {
        restrict: "E",
        template: "<div>test</div>"
    };
});
app.directive("test2",function(){
    return {
        restrict: "E",
        template: "<div>test</div>",
        replace:"true"
    };
});
Output 300px

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

Dismiss x
public
Bin info
annaismepro
0viewers