Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bcguan2008 committed Apr 24, 2017
1 parent 436dcff commit 6bbd928
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/Service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,20 @@ export default angular.module('bp.services', [])
})
.directive('modalTransclude', function() {
return {
transclude:true,
link: function(scope, element, attrs, controller, transclude) {
debugger;
transclude(scope.$parent, function(clone) {
element.empty();
element.append(clone);
});
}
};
})
.directive('',function(){

.directive('modalWindow',function(){
return {

}
})
.service({
AlertService
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ModalController {
this.$document.find('body').append(this.mask);
}

let dialog = this.$compile(angular.element(modalOptions.template))(ctrlLocals);
let dialog = this.$compile(angular.element(template))(ctrlLocals);
this.$document.find('body').append(dialog);
dialog.css('display', 'block');
dialog.css('z-index', this.zIndex + this.dialogCounter);
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/modal/modal.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body" modalTransclude>
<div class="modal-body" modal-transclude>

</div>
</div>
Expand Down

0 comments on commit 6bbd928

Please sign in to comment.