mercredi 14 novembre 2018

Ember js Disconnect Outlet doesnt clear cached template data

i have a modal where i open and via a outlet so opened it using following code

this.render( controller, {
  into: 'application',
  outlet: 'modal'
} );

then in the modal view i have a computed property

  peopleArray: computed ('someDataFromaMixin' , function (){
    debugger;
    return this.get( 'someDataFromaMixin' )
  }),

then i close the modal using below code

removeOutlet: function( ) {

    return this.disconnectOutlet( {

      outlet: 'modal',
      parentView: 'application'
    } );
  },

issue is the computed property compute if i go there with a page refresh

if i close the modal and re-open again the computedProperty will not trigger ( even if i modified the computed property data )

im clueless what cause this issue




Aucun commentaire:

Enregistrer un commentaire