Hi Paras,

With current browsers supporting the `import()` it becomes even easier, and 
you don't need the eval anymore. Just provide the script from an API 
endpoint that sets the content-type to the correct mime-type. you can then 
use the default export as the entry point.

something like:
import('URLtoJsFileThatExports').then(module =>module())


Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/487ab1b6-cb8c-421c-91cb-0ae3664984f1%40googlegroups.com.

Reply via email to