updated with latest versions ionic and angularjs