general-porpoise / snapcache

Snapcache allows users to create, share, and discover geocached time capsules with their friends.
http://snapcache.co/
5 stars 4 forks source link

(fix) Cause mapModal to be removed when cache created/closed #137

Closed cgrinaldi closed 9 years ago

cgrinaldi commented 9 years ago

This fixes #133 where the map modal would not show a map after a single cache was created due the mapModal not being removed.

To fix, we use $broadcast and $on to listen to events (allowing for communication from the parent scope to the child scope).

annekef commented 9 years ago

Beautiful and eventful.