How to import third party module in angular2 project using cli. Like ng2-validation OR ng2-bootstrap etc. I have don't any idea for how to plugin third party module.
Like (Note: Angular-cli don't use system js file):
(function(global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
'angular-in-memory-web-api': {
main: './index.js',
defaultExtension: 'js'
}
}
});
})(this);