urish / angular-load

Dynamically load scripts and css stylesheets in your Angular.JS app
MIT License
243 stars 65 forks source link

ReferenceError - undefined function #30

Open Rex90 opened 8 years ago

Rex90 commented 8 years ago

I'm using anuglar-load to load the SlidingMarker API after my google maps API has loaded asycnohornly in an angular controller. https://github.com/terikon/marker-animate-unobtrusive#api

This does not throw an error but when I try to use the plugin in the controller I get a ReferenceError. Interestly, I can call new SlidingMarker inside the chrome developer console without any issues. ionic.bundle.js:26771 ReferenceError: SlidingMarker is not defined


            var marker = new SlidingMarker({
                position: myLatlng,
                map: map,
                title: "I'm sliding marker",
                duration: 2000,
                easing: "easeOutExpo"
            });

IS there some scoping issue going on here?

j2kenton commented 5 years ago

I have the same issue! I was wondering the exact same thing - what am I not getting here? In the meantime, I am forced to explore other options. Can someone update us at least if there is a timeframe for investigation this? Thanks!!