How to unload css、js by $ocLazyLoad.load(css/js file)

Posted in General by luhaixing Sat Jan 02 2016 16:21:55 GMT+0000 (UTC)·1·Viewed 1,273 times

How to unload css、js by $ocLazyLoad.load(css/js file) when goto in another controller
Olivier Combe
Jan 2, 2016

You cannot delete the js, once it has been downloaded and added to the page, it's there until you reload the page.
You can "unload" the css by deleting the style tag with something like $("[src=yourUrl]").remove();

  
Markdown is allowed