Angular: Attach directive
http://angularjs.org/
by Oli Gustafsson
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
<div ng-controller="MyCtrl">
Hello, {{name}}!
<form>
<input type="text" ng-model="input" ng-attach="">
</form>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
myApp.controller('MyCtrl', function($scope) {
$scope.name = 'Superhero';
});