Closed dinesh2017 closed 7 years ago
Post your Dialog controller, you should return something if you want to update some UserProfileController variable, to have something like this:
this.DialogService.fromTemplate("UserGender",options).then((returnedValue) => {
this.variableInUserProfileController = returnedValue;
});
@flick36's solution works 👍 Feel free to re-open if it doesn't work Cheers
I'm submitting a ...
[ ] bug report
[ ] support request
Problem Hi, Why i can't update my variable values after dialog service function.Below code when i'm click addGender Button dialog window shown after click save button it is saved successfully. But Update my local variable (controller variable) it is not updating. please guide me how to do this.
UserGenderDialog Service
UserProfile component.html.
UserProfile Controller
Laravel & Angular version: 3.2.0