What is the recommended way to add third party library

@gki is right, however, you can also just using Ionic CLI with command like:

$ ionic add [component name]

For example, the command $ ionic add ngCordova will make ionic install ngCordova into the www/lib path(see .bowerrc),and then update the bower.json like using bower install ngCordova --save-dev:

{
  "name": "your_project_name",
  "private": "true",
  "devDependencies": {
    "ionic": "driftyco/ionic-bower#1.0.0-beta.14",
    "ngCordova": "~0.1.11-alpha"
  }
}
4 Likes