Firebase Offline Only mode

I am using angularfire2 to connect my app with firestore.
I want to have a login and register in my app but also give the user the possibility to save all data on the local devie. How can I do this?
I also want that there is an option to apply all local data to firestore if the user decides to create an account.
Thanks for help!