submit button not working after edit the student form in angular 1

I have created a form in which ( all value store locally )
one row with user name, email, address etc. with edit and delete button.
when I clicked on edit the value of row submit button not working.
edit working properly and add the user value proper but when click on edit button the submit button not working.

html :

    <form name="studentForm" method="post" ng-submit="addEditStudent()">
        <div class="alert alert-danger" ng-if="message">{{message}}</div>
        <div class="row">
            <div class="col-sm-6 form-group">
                <label for="firstName">First Name <span class="red">*</span></label>
                <input type="text" class="form-control" name="firstName" id="firstName" ng-model="data.firstName" ng-pattern="/^[a-zA-Zs]*$/" ng-required="true">
                <div ng-if="studentForm.firstName.$dirty && studentForm.firstName.$error.required" class="form-error">First name is required</div>
                <div ng-if="studentForm.firstName.$dirty && studentForm.firstName.$error.pattern" class="form-error">Invalid first name.</div>
</div>
<div class="col-sm-12 clearfix">
<button type="submit" class="btn pull-right" ng-disabled="studentForm.$invalid">Submit</button></div>
</form>

controller :

app.controller('listStudentCtrl', ['$scope', '$state','$timeout','share', function($scope, $state,$timeout,share) {


    /**
    *Show message
    */
    if(share.get('message')){
        $scope.message = share.get('message');
        share.remove('message');
        $timeout(function () {
            $scope.message = false;
        }, 2000);
    }

    /**
    *Get student list
    */
    $scope.getStudents = function(){
        if(share.getObject('studentList')){
            $scope.studentList = share.getObject('studentList');
            $scope.total = Object.keys($scope.studentList).length;
        }else{
            $scope.studentList = {};
            $scope.total = 0;
        }
    }

    /**
    *Initialize student list for edit
    */
    $scope.getStudents();


    /**
    *Delete student
    *@param rollNumber
    */
    $scope.deleteStudent = function(id){
        delete $scope.studentList[id];
        share.setObject('studentList',$scope.studentList);
        share.set('message','User deleted successfully!!!');
        $state.go($state.current, {}, {reload: true});


    }



}]);

controller 2:

app.controller('addEditStudentCtrl', ['$scope', '$state','$timeout','share', function($scope, $state,$timeout,share) {
    debugger;
    $scope.page = $state.current.name;

    /**
    *object for add edit student
    */
    $scope.data = {};

    /**
    *Get student list
    */
    $scope.getStudents = function(){
        if(share.getObject('studentList')){
            $scope.studentList = share.getObject('studentList');
        }else{
            $scope.studentList = {};
        }
    }

    /**
    *Initialize student list for edit
    */
    if($state.current.name=='studentEdit'){
        if($state.params.rollNumber){
            $scope.getStudents();
            $scope.data = $scope.studentList[$state.params.rollNumber];
        }else{
            $state.go('studentList');
        }
    }


    /**
    *Add or Edit student function
    */
    $scope.addEditStudent = function () {
        debugger;
        if($state.current.name=='studentAdd'){
            $scope.addStudent();
        }

        if($state.current.name=='studentEdit'){
            $scope.editStudent();
        }

    }


    /**
    *Edit Student
    */
    $scope.editStudent = function(){
        $scope.studentList[$scope.data.rollNumber] = $scope.data;
        share.setObject('studentList',$scope.studentList);
        share.set('message','Student edit successfully!!!');
        $state.go('studentList');
    }


    /**
    *Add Student
    */
    $scope.addStudent = function () {
        debugger;
        $scope.getStudents();   //get student list

        if(Object.keys($scope.studentList).length > 0){
            if(Object.keys($scope.studentList).indexOf($scope.data.rollNumber.toString())!=-1){
                $scope.message = 'User already exist. Please enter another roll number.';
                $timeout(function () {
                    $scope.message = false;
                }, 2000);
            }else{
                $scope.studentList[$scope.data.rollNumber] = $scope.data;
                share.setObject('studentList',$scope.studentList);
                share.set('message','Student added successfully!!!');
                $state.go('studentList');
            }
        }else{
            $scope.studentList[$scope.data.rollNumber] = $scope.data;
            share.setObject('studentList',$scope.studentList);
            share.set('message','Student added successfully!!!');
            $state.go('studentList');
        }
    }


}]);

Source: AngularJS