Upgrading from versions prior to 3.0 - brenoprata10/ng2-image-viewer GitHub Wiki

Here are some things you need to do:

  • Remove imageviewer.js from your angular-cli.json
    Just remove this part of your code on angular-cli.json:
"scripts": [
    // Remove this line of code
    "../node_modules/ng2-image-viewer/imageviewer.js"
],
  • Install iv-viewer package
    Now the ng2-image-viewer uses the iv-viewer as peer dependency, so you need to install it, just run npm install iv-viewer --save

That's it! You're good to go 👍

⚠️ **GitHub.com Fallback** ⚠️