why-does-angularjs-rock-07

http://angular-tips.com/blog/2013/08/why-does-angular-dot-js-rock/

by outsider

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<hello></hello>

JavaScript

var app = angular.module('app', []);

app.directive('hello', function() {
  return {
    restrict: "E",
    replace: true,
    template: "<div>Hello readers, thank you for coming</div>"
  }
});