How add ng2-cookies in ionic 2?


#1

How add https://github.com/BCJTI/ng2-cookies in ionic 2 project?
I do not understand, when need write this:

module.exports = function(defaults) {
  return new Angular2App(defaults, {
    vendorNpmFiles: [
      ...
      'ng2-cookies/**/*.+(js|js.map)'

and this:

const map: any = {
  'ng2-cookies': 'vendor/ng2-cookies'
};

/** User packages configuration. */
const packages: any = {
  'ng2-cookies': {main: 'ng2-cookies.js', defaultExtension: 'js'},
};