| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
delays constrution of the google map until the page has been loaded.
|
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. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This change enables delayed construction of the google map component until the page has been loaded.