btford / angular-modal

Simple AngularJS service for creating modals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$rootScope versus back buttoning out of modal

darylbrowneef opened this issue · comments

Our team encountered this problem:

  • we raise a welcome modal on a given page
  • user hits back button and welcome modal remains

Programmatically closing the modal registers as a dismissal, which
prevents it from opening on user's return to the page.

Our solution was to give the modal a local scope. Is there a good reason to put/have the modal in $rootScope?