a model of data when I put/initialize the controller , but the problem is it only get initialized once,I trigger it through a button and when trigger it from another button with the same action with new serviceDataModel value only the pervious value appears .
how can I fix this?
Did you update the controller?
what do you mean update isn't supposed to get initialized when I open the screen and when I close the screen the controller should be deleted with all its data from memory?
Also you should dispose the controller in the dispose() function
thanks buddy it worked I just initialized the controller in the init method and deleted it in the dispose method and it worked
Обсуждают сегодня