How to implement bookmark and favorite for posts in ionic 2 app


#1

Hai i am developing an ionic 2 app in that ,I have to add bookmark and favorite for particular post. I want to know how to write typescript for this


#2

Have a look at the Ionic Conference Demo App: https://github.com/driftyco/ionic-conference-app.


#3

Where does it provide this feature @pwespi?


#4

please provide answer for this


#5

On the schedule tab you can swipe a session to the left to add it to favorites. I guess you could implement something similar to any kind of element. Hope that helps…


#6

Use localStorage for this .

You have an example here :


#7

Thank You

I saw code.


#8

No problem,

If the given answer helped you, so marked it as solved :slight_smile:


#9

Okay. So, how do you view this?


#10

Hai

I have little confusion in schedule tab code , In this schedule tab code
they are not used local storage to save favorite.

Another thing their no code for Bookmark.

Please help with this


#11

in this example when i refresh the page the favourite list not display
Can someone tell me how to store favourite list in local storage in ionic


#12

In the UserData provider store the this._favorites array using ionic-storage whenever you change it and read it from storage in the constructor.


#13

Hi @david_bc,
Can you expalin how to do in ionic 2.

Thanks,