Menu

#69 Doesn't work well when using router

open
nobody
None
2015-12-23
2015-05-03
Anonymous
No

Originally created by: Utkarsh85

I am calling ModalService from a directive, which works well when on a particular route view. However, when I change the route to other view where the same directive exists, the ModelService fails to open.
Another issue I observed, when using ModalService in another service and called from any controller, again fails to open.

Discussion

  • Anonymous

    Anonymous - 2015-12-23

    Originally posted by: pdgendt

    When using ui-router in particular (don't know in general), if you inject ModalService multiple times it won't work anymore.
    Solution for me was to return a new ModalService instance every time the factory was called.

     

Log in to post a comment.