refactored favorsapp from ionic angular