BEFORE DATE (version 5.0.0-rc3):
, API . , FirebaseListObservable
(. @Ashish Jha):
import { AngularFireModule } from 'angularfire2';
import { AngularFireDatabase, FirebaseListObservable, FirebaseObjectObservable } from 'angularfire2/database-deprecated';
API, AngularFire 5.0 API Realtime. .
:
AngularFire2 4.0.0 +.
, auth of angleularfire2, . :
import {AngularFireModule} from 'angularfire2';
// for auth
import {AngularFireAuthModule} from 'angularfire2/auth';
// for database
import {AngularFireDatabaseModule} from 'angularfire2/database';
Auth
Observable
(AuthMethods AngularFireAuth):
// for auth
import { AngularFireAuth } from 'angularfire2/auth';
// for database
import { AngularFireDatabase } from 'angular2/database';
// for Observables
import {FirebaseListObservable, FirebaseObjectObservable } from 'angularfire2/database';