Before starting the following example, first need to make sure that both Ionic framework and ngCordova dependencies are loaded