last day (14 days later) » 

10:34 AM
3
Q: Ionic modal change detection

Alexandre  RozierI have a component using an Ionic modal to modify the album variable. addMedias() { let self = this; let profileModal = self.modalCtrl.create(AlbumAddPage, { album: self.album }); profileModal.onDidDismiss(data => { self.zone.run(() => { console.log("ALBUM " + data.alb...

 
can you share the Modal page code?
 
sure, see the edit coming ;)
 
the console is logging the data?
 
yes, the model is successfully changed in the base component, but ngOnChanges is not triggered
 
how are you showing in the view? :)
 
10:34 AM
with <my-custom-tag [assets]="album.assets"></my-custom-tag> :)
 
the custom tag meaning another component?
 
exactly, just a component using these assets to render
the problem is that i can't trigger a change event in the parent component from the modal dismissing
 
I have used a similar structure and worked fine..didnt have to use zone
 
your view did update on the modal dismissing ? strange..
 
are you sure its onNgChanges? have you tried setting a console.log?
 
11:25 AM
I found the reason !
thanks for your help, i'll write the answer in my post :-)
 
sure:) congrats
 
A huge thanks for your help ! :-)
bye ;)
 

last day (14 days later) »