InputExtrasController.js

angular.module('homepage').
controller('InputExtrasController', function ($anchorScroll, $localStorage, $scope, $state, DataStoreSrvc, Server) {
	$anchorScroll();

	$scope.inputs = DataStoreSrvc.getInputData();

    $scope.onBack = function () {
		$localStorage.inputs = JSON.stringify($scope.inputs);
        $state.transitionTo('inputexperience');
    };

    $scope.onSubmit = function () {
		$localStorage.inputs = JSON.stringify($scope.inputs);
        // Submit new data to server
        console.log($scope.inputs);
		Server.saveResumeData($scope.inputs);
		$state.transitionTo('download');
    };
});