How to use system.config file in meteor angular


#1

I’m working on meteor-angular project with typescript.

I’m using this package from angular called ng2-img-cropper https://github.com/cstefanache/angular2-img-cropper

to use that it was mentioned that I need to add following

Please change your system.config files to make use of the js files.

'ng2-img-cropper' : { main: 'index.js', defaultExtension: 'js' }

They have example here https://embed.plnkr.co/VFwGvAO6MhV06IDTLk5W/

where they are suggesting to add something like below

        System.config({
            packages: {
            'ng2-img-cropper': {
              main: 'index.ts',
              defaultExtension: 'ts'
            }
          }
        });

but when I add it, it is throwing System is not defined error.

How can I use this package in angular-meteor?