dougludlow / ng2-bs3-modal

Angular Bootstrap 3 Modal Component
http://dougludlow.github.io/ng2-bs3-modal/
ISC License
261 stars 133 forks source link

Model-Component Does Not Destroy the Whole Modal Component on Close #250

Open ashfaque-rifaye opened 6 years ago

ashfaque-rifaye commented 6 years ago

I have a requirement like, to get the data from the Server and to set on ModalComponent, but, what happens is:

  1. Trying to get the data from server. Set those data in the Model Component.
  2. Open the ModalComponent.
  3. Displays the results set in the Modal.
  4. Now close the Modal Component and make the changes to eliminate few Data(Modification).
  5. Now Again try doing the steps from 1-3.
  6. Few data were deleted and removed while Modification, but those data seem to be persisting in the Modal Component, even though the server side data are populating correctly.

It seems like, the Model Data is not getting Destroyed Properly on close. Any alternatives ?