angular.module('directives')
.directive('formChange',['$parse',function($parse) {
  return {
    'restrict' : 'A',
    'require' : 'form',
    'link' : function($scope, $elem, $attrs) {
      var cb = $scope.$eval($attrs.formChange);
      $elem.on('keyup',function() {
        cb();
        $scope.$apply();
      });
    }
  }
}])
.directive('buttonText',[function() {
  return {
    'restrict' : 'A',
    'link' : function($scope,$elem,$attrs) {
      
      var btnText = $attrs.buttonText,
          btnDefaultText = $attrs.buttonDefaultText|| 'Submit',
          btnDisableText = $attrs.buttonDisableText || '__undefined';

      if(!$scope[btnText]){
        $elem.text(btnDefaultText);
        return;
      }

      $scope.$watch(btnText,function(newVal){
        
        if(newVal == btnDisableText){
          $elem.attr('disabled',true);
          return;
        }

        $elem.removeAttr('disabled');

      });
    }
  }
}])
@@ -915,28 +915,374 @@
 ');%0A%0A      %7D);%0A    %7D%0A  %7D%0A%7D%5D)
+%0A.directive('ngEnter', %5Bfunction () %7B%0A  return %7B%0A    link : function (scope, element, attrs) %7B%0A      element.on(%22keydown keypress%22, function (event) %7B%0A        if(event.which === 13) %7B%0A%0A          scope.$apply(function ()%7B%0A              scope.$eval(attrs.ngEnter);%0A          %7D);%0A%0A          event.preventDefault();%0A        %7D%0A      %7D);%0A    %7D%0A  %7D%0A%7D%5D);

Create ngEnter directive to submit value on enter