Closed moscoso closed 3 years ago
Angular:
Firebase:
AngularFire: 6.0.0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
In an Angular project, try to inject AngularFirestore as a depedency:
@Component({ 'selector': 'app-create', 'templateUrl': './create.page.html', 'styleUrls': ['./create.page.scss'], }) export class CreatePage implements OnInit {
constructor( public angularFire: AngularFirestore, ) {}
}
Vs code to auto import import { AngularFirestore } from '@angular/fire/firestore';
import { AngularFirestore } from '@angular/fire/firestore/firestore;
Not a AngularFire issue IMO and I haven't seen it in a while, did VS Code fix this?
Version info
Angular:
Firebase:
AngularFire: 6.0.0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
In an Angular project, try to inject AngularFirestore as a depedency:
@Component({ 'selector': 'app-create', 'templateUrl': './create.page.html', 'styleUrls': ['./create.page.scss'], }) export class CreatePage implements OnInit {
}
Expected behavior
Vs code to auto import import { AngularFirestore } from '@angular/fire/firestore';
Actual behavior
import { AngularFirestore } from '@angular/fire/firestore/firestore;