Constructor multiple imports json


#1

Hello all,

I have a page where I want to import some from firebase and some from an json file:

constructor(public navCtrl: NavController, public authProvider: AuthProvider, afDatabase: AngularFireDatabase, public http: Http, private sanitizer: DomSanitizer) {
		this.products = afDatabase.list('/products/').valueChanges();
	
	this.http.get('http://headless.blabla.nl/aanbieding-front').map(res => res.json()).subscribe(data => {
         this.aanbiedingen = data
              })
		
	}

I thought thius was it but I get an error:

Cant resolve all parameters for welcomespage…

Any idea what is wrong? :slight_smile: