0.0.14 • Published 5 years ago

firebase-utils-module v0.0.14

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Firebase suite module

Desription here (pending)

Developing

run commands:

npm i @ionic-native/core@3 npm i @ionic-native/firebase

then for buillding and publishing: optionally: npm login npm run build npm publish

you can build any times you want but make sure to increment version before publishing

Using your module in an Ionic 2 app

import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';

// Import your module
import { MyModule } from 'ionic-module-template';

@NgModule({
  declarations: [
    MyApp,
    HomePage
  ],
  imports: [
    IonicModule.forRoot(MyApp),

    MyModule // Put your module here
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage
  ],
  providers: []
})
export class AppModule {}

//---------- Also in a component (page)
import { Component } from '@angular/core';
import { Firebase } from '@ionic-native/firebase';
import {MyProvider} from 'firebase-utils-module';

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {

  token = "";

  constructor(myFirebase: MyProvider) {
    myFirebase.getToken()
    .then(t => this.token = t)
    .catch(e => console.error(e));
  }
}
0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago