Closed TrangNguyen closed 9 years ago
I realized async doesn't work out of the box with almond. Would you recommend any way to bind google maps API. Thanks.
Interesting. Didn't know anything about the async plugin til now.
The only time I used google maps myself in an SPA and requirejs environment was just a test project and I loaded it synchronsous via normal script tag.
I don't have any experience loading it asynchronous. Sorry!
Hi,
thanks for your reply. After digging in for a few hours I decided to wrap the google map api in to a service and then call it from the directive. I'll live with it for now, tight deadline.
I really like your ngStart, it's so nicely structured that our team (one for WordPress backend, me for Angular and a CSS developer) never step on each other's feet and find every new module added without problem. Thanks a lot fro all ground work.
Thank you very much for the compliment! Nice to hear that ngstart used somehwere.
I close the ticket for now. If you have a suggestion how your usecase can be integrated in ngstart feel free to open it again.
Hi,
I need to use google map api on certain routes so I chose async. While it works well localhost, the production deployment does not: maps is undefined. I must be doing something wrong so if you could please guid me to the right direction, much help is greatly appreciated. I created a directive, as a part of commonModule, which is a dependency of the app:
In the main.js, I added async:
Thank you very much. Trang