new solution using angular and ionic framework