Sha256: c568b150da8d67f31271e7cac2b7a382410a4aafd3f9ac0f389986f8157b55ca
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
angular.module('EssayApp.directives').directive("canBeBlank", ['$timeout', ($timeout) -> restrict: 'A' scope: true require: "ngModel" link: (scope, element, attrs, ngModel) -> fn = -> ngModel.$viewValue element.on 'focusout', -> scope.$eval(attrs.canBeBlank).$removeControl(ngModel) # scope.$watch fn, (value) -> # scope.$eval(attrs.canBeBlank).$removeControl(ngModel) ])
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/assets/javascripts/app/directives/can_be_blank.js.coffee |