Angular: Empty Fiddle

http://angularjs.org/

by Evan Sharp

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.js"></script>
<div ng-app='myApp' ng-controller="MyCtrl" name='myForm'>
   <input ng-model="myThing" />
   {{myThing}}{{}}

</div>

JavaScript

var myApp = angular.module('myApp', []).directive('myDirective', function () {
    return {
        require: 'ngModel',
        restrict: 'A',
        scope: {
            myFunction: "="
        },
        link: function (scope, elm, attr, ctrl) {
            scope.$eval(myFunction);
        }
    };
});


function MyCtrl($scope, $http) {

}