<body ng-app="myApp">
<my-directive></my-directive>
</body>
var myApp = angular.module('myApp', []);
myApp.directive('myDirective', function() {
return {
restrict: 'E',
template: '<h1>I made a directive!</h1>'
};
});
This Pen doesn't use any external CSS resources.