Move code to ng-submit