* add firebase to an ionic 2 project using typescript
* add firebase to an ionic 2 project using typescript
homeService.ts
import {Injectable} from '@angular/core';
declare var firebase: any;
@Injectable()
export class HomeService {
db: any;
constructor() {
this.db = firebase.database()
This file has been truncated. show original
index.html
<body>
<ion-app></ion-app>
...
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
var config = {
apiKey: "...",
This file has been truncated. show original