FirebaseExtended / firechat

Real-time Chat powered by Firebase
https://firechat.firebaseapp.com
MIT License
2.41k stars 1.04k forks source link

How to use this plugin with cordova/ionic 2 #85

Open Cempakers87 opened 7 years ago

Cempakers87 commented 7 years ago

Hi, is there any example to use this with cordova/ionic 2?

vochicong commented 7 years ago

Hi @Cempakers87, I have the same question 👍

A little research shows that the default FirechatUI depends heavily on jQuery (#29, #40, #46), and jQuery conflicts with Angular which is integrated into Ionic.

So the tasks may be

From Firechat docs:

To get started with a new UI layer, create a directory for your new interface under the layouts directory, using the name of your new interface. Next, create a primary JavaScript interface for your UI using the name firechat-ui.js, and add styles, layouts, and templates following the same convention as the default layout. Lastly, begin hooking into the Firechat API, detailed below, using the exposed methods and defined bindings.