You are trying to import a third party module in your angular module so you need to provide the reference path of the related files in your system js folder.
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': '/node_modules/'
},
// map tells the System loader where to look for things
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: 'main.js',
defaultExtension: 'js'
}
}
});
})(this);
In above example yellow marked libraries are third party library which we import in our module by using system js file. Red color text are just like alias or short name of the related files which need to use in our angular module or component files for import.
If your MatButtonModule and MdCardModule is in different file then you need to import separately in module file.
Manav PandyaPosted Mar 25, 2018, 4:12 AM
Asad IlyasPosted Mar 25, 2018, 5:01 AM
Asad IlyasPosted Mar 25, 2018, 4:56 AM
Asad IlyasPosted Mar 25, 2018, 4:47 AM
Debasis SahaPosted Mar 25, 2018, 4:15 AM