Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unload the loaded JS objects? #62

Closed
digz6666 opened this issue Dec 11, 2017 · 4 comments
Closed

Unload the loaded JS objects? #62

digz6666 opened this issue Dec 11, 2017 · 4 comments
Labels

Comments

@digz6666
Copy link

digz6666 commented Dec 11, 2017

Is there any way to unload the loaded JS objects?
I'm using arcgis JS api 3.x and 4.x together in my project due to some features haven't ported to 4.x yet.

When I load the 4.x after the 3.x it throws error. So how should I handle this?

I'm using angularjs 5 with https://github.com/tomwayson/angular-esri-loader

@andygup
Copy link
Member

andygup commented Dec 11, 2017

Need a bit more info. Are you using globals to share modules between the two APIs?

Cross-reference: tomwayson/angular-esri-loader#35

@tomwayson
Copy link
Member

tomwayson commented Dec 12, 2017

@digz6666

As far as I know, you should not need to "unload" them as long as you are using the techniques @odoe describes in his blog post/video.

I have never tried that w/ esri-loader, but it's conceivable that it could work. If you're going to try that, I'd suggest using esri-loader directly instead of using angular-esri-loader. This is b/c the latest esri-loader let's you pass the dojoConfig that is needed to load 4.x modules from the 3.x loader. Also, angular-esri-loader is going to be deprecated.

If you get that to work, I'd love it if you could share back here with your results.

@digz6666
Copy link
Author

@tomwayson Thanks, I will try and share my results back.

@andygup
Copy link
Member

andygup commented May 30, 2018

Closing. @digz6666 please feel free to reopen if you have follow up questions/comments.

@andygup andygup closed this as completed May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants