adriancarriger / angularfire2-offline

🔌 A simple wrapper for AngularFire2 to read and write to Firebase while offline, even after a complete refresh.
https://angularfire2-offline.firebaseapp.com/
MIT License
207 stars 48 forks source link

search query #61

Closed Ross-Rawlins closed 7 years ago

Ross-Rawlins commented 7 years ago

How can i do a search query with firebase offline. I know of flashlight but how will that affect my offline queries

adriancarriger commented 7 years ago

Hi @Ross-Rawlins, I made a demo that allows you to search while offline.

It uses a basic component to setup the list, and the search logic is located in a pipe.

Hope it helps, and let me know if you have any questions! 👍

Ross-Rawlins commented 7 years ago

We are gettign used to noSQL now so I did the exact same thing and just updated the UI to allow me to filter smaller lists so that my search pipe can still work well.

On 20 August 2017 at 02:19, Adrian Carriger notifications@github.com wrote:

Hi @Ross-Rawlins https://github.com/ross-rawlins, I made a demo https://adriancarriger.github.io/angularfire2-offline/issues/61.1/dist/ that allows you to search while offline.

It uses a basic component https://github.com/adriancarriger/angularfire2-offline/blob/gh-pages/issues/61.1/src/app/app.component.ts to setup the list, and the search logic is located in a pipe https://github.com/adriancarriger/angularfire2-offline/blob/gh-pages/issues/61.1/src/app/search.pipe.ts .

Hope it helps, and let me know if you have any questions! 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adriancarriger/angularfire2-offline/issues/61#issuecomment-323555338, or mute the thread https://github.com/notifications/unsubscribe-auth/ADMeUALbtQVF_lloova63csUZtRlvl0Gks5sZ3uigaJpZM4O6UCb .

-- Ross Rawlins Tel: 021 531 7087 Cell: 072 424 9480 Skype: ross.rawlins Email: ross@duovili.co.za

http://www.duovili.co.za https://plus.google.com/113781084234234096576/posts https://www.facebook.com/Duovili http://www.linkedin.com/company/duovili/ https://twitter.com/Duovili

This e-mail message and all attachments contain the CONFIDENTIAL AND PROPRIETARY information of DUOVILI DEVELOPMENTS. and may contain LEGALLY PRIVILEGED information. If you are not the intended recipient, you are hereby notified that any disclosure, distribution, or use of this e-mail, its attachments or any information contained therein is unauthorised and prohibited. If you have received this in error, please contact the sender immediately and delete this e-mail and any attachments.

terrycollinson commented 7 years ago

Hi Adrian,

Thanks for the demo but I don't understand what the json file import does on line 3 of the app.component.ts

import jsonFile from './json-file-example.json'

On 20 August 2017 at 01:19, Adrian Carriger notifications@github.com wrote:

Hi @Ross-Rawlins https://github.com/ross-rawlins, I made a demo https://adriancarriger.github.io/angularfire2-offline/issues/61.1/dist/ that allows you to search while offline.

It uses a basic component https://github.com/adriancarriger/angularfire2-offline/blob/gh-pages/issues/61.1/src/app/app.component.ts to setup the list, and the search logic is located in a pipe https://github.com/adriancarriger/angularfire2-offline/blob/gh-pages/issues/61.1/src/app/search.pipe.ts .

Hope it helps, and let me know if you have any questions! 👍

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adriancarriger/angularfire2-offline/issues/61#issuecomment-323555338, or mute the thread https://github.com/notifications/unsubscribe-auth/AEcAodJV2kIa-b9ASJB1b3xV-Gq8dswfks5sZ3uigaJpZM4O6UCb .

-- Kind Regards

Terry Collinson

adriancarriger commented 7 years ago

@Ross-Rawlins Good to hear! @terrycollinson Good question, that's completely unrelated. I accidentally copied it from a previous demo. I've just updated it and removed the unneeded code.