Integrating MobileFirst Foundation 8.0 in Ionic-based apps

Ionic SDK is a framework built on AngularJS and Apache Cordova that helps you rapidly build hybrid mobile apps using web technologies such as HTML, CSS, and Javascript.

In this blog post I will walk you through how to create, build, and deploy Ionic v1 apps implemented with MobileFirst Foundation.
Coming soon: walkthrough for Ionic v2.

Prerequisites

You will need to install the following tools: MobileFirst CLI, Ionic CLI, Cordova CLI, as well as have a MobileFirst server running.
Ensure that you have NodeJS downloaded and installed. With NodeJS install you can then install all required CLIs using npm.

We have defined the balance variable that will hold the value we get back from the adapter call. We have also defined the getAdapter variable which is the function where we actually call the adapter and get the balance.