angular.module('directivas', []) .directive('formato', function(){ return { restrict: 'A', require: 'ngModel', link: function(scope, element, attrs, ngModel){} } })