Closed elliottregan closed 7 years ago
By default modal is appended into body. Change body var for your need in angular-modal-service.js:46
// Get the body of the document, we'll add the modal to this.
var body = angular.element( $document[0].body );
@wojo1206 That would work, but then I would need our own fork of angular-modal-service
and couldn't keep it updated with bower.
This is available, see appendElement
at: https://github.com/dwmkerr/angular-modal-service#showmodal-options
If there isn't a way to set a default
appendElement
, that would be a great feature. It is probably pretty common that if you define a particularappendElement
element that you will always want to append to that element.