InputExperienceController.js

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

	$scope.inputs = DataStoreSrvc.getInputData();

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

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