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 async डेटा 3 navParams काम नहीं कर रहा
मैंने अभी यहां डेमो जोड़ा: https://stackblitz.com/edit/ionic-firestore।
किसी भी विचार का स्वागत है।
मेरी सोच वास्तविक वस्तु को स्टोर करने के लिए अवलोकन करने योग्य देश को फ्लैट करना है। – Sasuke91