How to implement favorite functionality in to my app

Actually i wan to implement in to my app but don’t understand how to start .please help anyone .

You can achieve this by using ionic storage for adding to favorite use set and for retrieve use get look detail here

please give me example of code am new in ionic

in that link its shown how to implement it ones you do it you will get idea how to solve your one too