Added two way binding to the variable passed into the `result` attribute