r ' + localStorage.getItem('JWTSessionID') }
            });

            post.success(function (data, status) {
                if (status == 200) {
                    $scope.DataResponse = data.name + ' Note created successfully!';
                    $scope.callAtTimeout = function() {
                                window.location = "notes.html"
                            }

                            $timeout( function(){ $scope.callAtTimeout(); }, 2000);
                }

            });
 
      