Angular 2 how to import components from a CDN -
i'm wondering how import components hosted somewhere else, cdn.
if got link someone's cdn example: <script src="a-cdn-link.js"></script>
component named mycomponent
resides, in own component file, use import path?
i know can use framework if included via cdn don't understand how make fetch correct path. haven't tried using cdn import angular2 i'm not quite sure how works.
would have declare path via systemjs or similar service?
could enlightment on matter.
in fact, can include js files if use system.register('module-name', ...
register explicitly named module. js files generated typescript ones leveraging outfile
option of typescript compiler.
if js files correspond anonymous system modules or commonjs / amd ones, need configure them within systemjs configuration.
the following question give additional hints:
Comments
Post a Comment