Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .directive('smartConfirm', function(){
- return{
- restrict: 'EA',
- scope:{
- "confirm": "&"
- },
- transclude: true,
- template:
- '<a ng-hide="show" class="btn btn-primary" ng-click="show=true"><ng-transclude/></a>' +
- '<div ng-show="show">' +
- '<a class="btn btn-danger" ng-click="confirm();show=false"><i class="fa fa-check fa-fw"></i></a> ' +
- '<a class="btn btn-primary" ng-click="show=false"><i class="fa fa-times fa-fw"></i></a>' +
- '</div>',
- link: function(scope, element, attrs){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement