InputBasicController.js

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

	$scope.inputs = DataStoreSrvc.getInputData();

    $scope.onReset = function () {
        // Discard the local storage saved data
        // Reload the page from last saved server data
    };

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