Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Ionic
  • Toc
  • feedback
Learning Ionic

Learning Ionic

By : Ravulavaru
4.4 (14)
close
Learning Ionic

Learning Ionic

4.4 (14)
By: Ravulavaru

Overview of this book

This book is intended for those who want to learn how to build hybrid mobile applications using Ionic. It is also ideal for people who want to explore theming for Ionic apps. Prior knowledge of AngularJS is essential to complete this book successfully.
Table of Contents (12 chapters)
close
11
Index

The Ionic plugin API


There are four main commands that you will be using while dealing with plugins.

Add a plugin

This CLI command is used to add a new plugin to the project, for example:

ionic plugin add org.apache.cordova.camera

Also, you can use this:

ionic plugin add cordova-plugin-camera

Remove a plugin

This CLI command is used to remove a plugin from the project, for example:

ionic plugin rm org.apache.cordova.camera

Also, you can use this:

ionic plugin rm cordova-plugin-camera

List added plugins

This CLI command is used to list all the plugins in the project, for example:

ionic plugin ls

Search plugins

This CLI command is used to search plugins from the command line, for example:

ionic plugin search scanner barcode

To test the earlier commands, we will scaffold a new project and execute them. Run the following command:

ionic start -a "Example 28" -i app.example.twentyeight example28 blank

Note

When you download the blank project, the following plugins will be downloaded and setup:

cordova...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete