code: function ($scope, $element, $attrs) {
  
  		if(!$attrs.readOnly){
  			$scope.readOnly = function(){return false;};
  		}
  
  		if(!$attrs.resetable){
  			$scope.resetable = function(){return true;};
  		}
  
  		if(!$attrs.beforeRated){
  			$scope.beforeRated = function(){var d = $q.defer(); d.resolve(); return d.promise;};
  		}
  
  		if(!$attrs.rated){
  			$scope.rated = function(){return;};
  		}
  
  		if(!$attrs.beforeReset){
  			$scope.beforeReset = function(){var d = $q.defer(); d.resolve(); return d.promise;};
  		}
  
  		if(!$attrs.reset){
  			$scope.reset = function(){return;};
  		}
  
  	}
docs: /*jslint unparam:true