load multiple dependencies with system.js
علی ذوالفقار
1402/09/09 11:46:18 (232)
Promise.all([
System.import('jquery'),
System.import('underscore')
]).then(function(modules) {
var jquery = modules[0];
var underscore = modules[1];
});
sampleLib.js :
module.exports = {
hello : (message)=>{ alert( 'hello ' + message) }
}
Use like This :
System.import('/sampleLib.js').then( async me => {
m.hello('Ali')'
})