Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

angular-ui-map doesnt play well with angular-ui-router. #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SayreBlades
Copy link

This change enables delayed construction of the google map component until the page has been loaded.

delays constrution of the google map until the page has been loaded.
@nateabele
Copy link
Contributor

This looks like a very specific and inflexible solution to a very general problem. What if UI Router and UI Map are combined with another module that controls template rendering (let's say, a tab directive)? Now you have to listen for two events. What if they don't agree about whether the map should be rendered? What if the order of events is nondeterministic?

👎 from me. A logical approach would use a $watch() to check that the container element is visible and has bounds and an offset.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants