cities: Observable<any>;
this.cities = this.fsProvider.collection('cities').map(cities => {
return cities.map(city => {
city.country = this.fsProvider.doc(`countries/${city.country_id}`);
return city;
});
});
city
가 Observable
데이터로 country
정보를 포함 작동하지 않습니다. 따라서 다른 페이지로 city
을 navParam
으로 보내면 this.navCtrl.push(AnotherPage, {city: city})
만 입력하면 AnotherPage
에 대한 국가 정보를 얻을 수 없습니다.경우 FireStore : 전달 angularfire2 비동기 데이터 이온으로 3 navParams는
방금 데모를 추가했습니다 : https://stackblitz.com/edit/ionic-firestore.
모든 의견을 환영합니다.
내 생각은 실제 개체를 저장하기 위해 관찰 가능한 국가를 평평하게 만드는 것입니다. – Sasuke91