jadjoubran / laravel5-angular-material-starter

Get started with Laravel 5.3 and AngularJS (material)
https://laravel-angular.readme.io/
MIT License
1.66k stars 401 forks source link

I can't update my controller variable values after execute dialog service function #476

Closed dinesh2017 closed 7 years ago

dinesh2017 commented 7 years ago
flick36 commented 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;
});
jadjoubran commented 7 years ago

@flick36's solution works 👍 Feel free to re-open if it doesn't work Cheers