Hi !
I want to use your component but I use Angular-Cli.
My Code:
system-config.ts
`const map: any = {
'@angular2-material': 'vendor/@angular2-material',
'angular2-token': 'vendor/angular2-token'
};
/** User packages configuration. */
const packages: any = {};
// put the names of any of your Material components here
const materialPkgs:string[] = [
'button',
'card',
'core',
'checkbox',
'grid-list',
'icon',
'input',
'list',
'menu',
'progress-bar',
'progress-circle',
'radio',
'sidenav',
'slider',
'slide-toggle',
'button-toggle',
'tabs',
'toolbar',
'tooltip'
];
materialPkgs.forEach((pkg) => {
packages[@angular2-material/${pkg}
] = {main: ${pkg}.js
};
});
packages['angular2-token'] = {
main: 'angular2-token.js'
};`
angular-cli-build.ts:
`// Angular-CLI build configuration
// This file lists all the node_modules files that will be used in a build
// Also see https://github.com/angular/angular-cli/wiki/3rd-party-libs
/* global require, module */
var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
module.exports = function(defaults) {
return new Angular2App(defaults, {
vendorNpmFiles: [
'systemjs/dist/system-polyfills.js',
'systemjs/dist/system.src.js',
'zone.js/dist//*.+(js|js.map)',
'es6-shim/es6-shim.js',
'reflect-metadata//.+(ts|js|js.map)',
'rxjs/__/.+(js|js.map)',
'@angular//*.+(js|js.map)',
'@angular2-material//',
'angular2-token/__/.+(js|js.map)',
]
});
};
`
The problem is system js doesn't load all files in my dist folders, so my browser can't load the content of src..
Any idea ?
Thanks.