learning ionic framework/angular.js