themyth92/angular2-lightbox

How to include in .angular-cli.json

heartmon opened this issue · 2 comments

I have include the script in .angular-cli.json file:
... "scripts": [ "../node_modules/angular2-lightbox/index.js" ],

It works, however with an error 'Uncaught SyntaxError: Unexpected token export' in the browser console.
How should I use it correctly with .angular-cli.json?

I dont think you need to put any content in scripts attribute. Just include lightbox directly in your module. Demo

Closed. Feel free to open if u have any issues.