Ionic 2 LocalStorage

Ionic 2 has re-invented the way mobile apps store data. Storage allows your app to store key/value pairs, where the value can be a simple string or a complex JSON object. Ionic 2 supports different types of storage: SQLite (this will require the sql lite cordova plugin), IndexdDB, WEBSQL, and localstorage in that order. It’s…

Ionic 2 Http Request & Services

Making an http request in Ionic 2 can be done in one of two ways, using an observable or a promise. There are many articles that explain the differences quite well, so we’re not going to get into the pros and cons of each. Instead, we are going to make a promise-based

Starting an Ionic 2 App

This blog post will be the first of a short series where we build a simple Ionic 2 application. The app will allow us to send a search term to an API and then show the results. We are going to start an Ionic 2 application, go through the Ionic 2’s app structure, and understand…

Ionic 2 Start Error

When starting a new Ionic 2 app, you may encounter a peculiar error which tells you that npm install could not be found, followed by some gibberish.

Ionic 2 Camera Example

In this example we are going to show how to use ionic-native’s Camera plugin to take a picture using the camera. This example assumes that you have an ionic 2 project up and running, although these examples are in typescript, it should not be very difficult to adapt this example to run in plain old…

Hosting An Ionic App Online

Deploying your ionic app to either heroku or aws is a breeze and takes just a few steps. 1. Install express 2. Create an app.js 3. Update your npm start script. Let’s get started 1. Install Express You can install