Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Upgrading from versions prior to 3.0

Breno Prata edited this page Apr 21, 2019 · 1 revision

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 👍

Clone this wiki locally