I have a drop-down list
<md-option ng-repeat="person in people" ng-value="person">
{{ profile.lastname }}
</md-option>
I change its value to 1 controller
function savePerson(lastname) {
}
saving works, refreshes the drop down list, but as we move to another controller, the value in the drop-down list returns to the previous one.
I want the list to always be refreshed.
How to pass the value of the list to another controller?