Sha256: 5edd6041838b6fb7d3bb7d7909957cec8c6c84ce7aff7e190962ce89dc88102d
Contents?: true
Size: 498 Bytes
Versions: 113
Compression:
Stored size: 498 Bytes
Contents
angular.module('NgMatches', []) .directive 'ngMatches', -> replace: true scope: { ngMatches: '=' } template: (element, attributes) -> element[0].setAttribute('ng-show','checkMatch(ngMatches)') element[0].removeAttribute('ng-matches') return element[0].outerHTML controller: ($scope,$element) -> $scope.checkMatch = (model) -> return true unless model return $element[0].textContent.toLowerCase().indexOf(model.toLowerCase()) > -1
Version data entries
113 entries across 113 versions & 1 rubygems