Sha256: 84fb86b6c00cf6d4caf2bf48908d6de1f60e4ac140352cf7343585518b5caac1
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
# <button ng-click="sayHi()" ng-confirm-click="Would you like to say hi?">Say hi to {{ name }}</button> Sprangular.directive "ngConfirmClick", [-> priority: 1 terminal: true link: (scope, element, attr) -> msg = attr.ngConfirmClick or "Are you sure?" clickAction = attr.ngClick element.bind "click", (event) -> scope.$eval clickAction if window.confirm(msg) return return ]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/assets/javascripts/sprangular/directives/confirm.coffee |
sprangular-0.0.1 | app/assets/javascripts/sprangular/directives/confirm.coffee |