Clear form fields on statechange or logout

i want to clear the sign in fields on logout or redirect

Have you tried to clean your ng-model in $ionicView.beforeLeave() ?

Hi,

Am also facing the same issue. I couldn’t clear files on statechange and logout. How to clean the ng-model? Please help…