Menu

#192 Default `appendElement`

open
nobody
None
2017-02-10
2017-02-09
Anonymous
No

Originally created by: elliottregan

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 particular appendElement element that you will always want to append to that element.

Discussion

  • Anonymous

    Anonymous - 2017-02-09

    Originally posted by: wojo1206

    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 );
    
     
  • Anonymous

    Anonymous - 2017-02-10

    Originally posted by: elliottregan

    @wojo1206 That would work, but then I would need our own fork of angular-modal-service and couldn't keep it updated with bower.

     

Log in to post a comment.