Reputation: 6684
Is fbh-firebase-util compatible with aurelia?
How to use it?
fbh-firebase-util via jspm:
jspm install github:djindjic/fbh-firebase-util
Upvotes: 0
Views: 944
Reputation: 12295
Aurelia is just a javascript framework. Aurelia itself won't keep you from using the libraries you love. After installing a library with jspm, just import it and use it. The only trick is knowing what the library exports, but the library should provide you with some documentation.
In all likelihood, you will just need to add this line at the top of your code which uses firebase:
import firebase from 'github:djindjic/fbh-firebase-util'
If you add a dependency to your package.json
"jspm": {
"dependencies": {
"firebase": "github:djindjic/fbh-firebase-util@^0.1.22",
then your import line becomes
import firebase from 'firebase'
If this doesn't immediately work, please review the firebase documentation to see what the module exports. The above assumes it exports default.
Upvotes: 1