troubleshooting Question

Angular application that gathers data from multiple screens

Avatar of YZlat
YZlatFlag for United States of America asked on
12 Comments1 Solution193 ViewsLast Modified:
I am working on a app that switches between different screens. Each screen collect data from the user by means of user selecting a button and clicking on it or selecting a radio button. There will be at least 5-6 screens. i need ideas on how and where to store the data collected and what's the best way to move between different screens: switch what is displayed inside a div on the page or go to an entirely different page. The data on each screen is coming from the different database tables.

So far I have one screen done - it pulls data from the database(via Web API call) and based on the data pulled, displays a different image in the hyperlink.

What I want to do is capture which hyperlink is clicked by the user and store that value somewhere(a location that will persist until all data is collected and stored in the database) and then move on to the next screen. I am sort of stuck here and need some help and ideas.

here is what i got so far:

UI for screen 1:

<!DOCTYPE html>
<html xmlns="">
    <script src="../../Scripts/angular.js"></script>
    <script src="TypesCtrl.js"></script>
<body ng-app="myApp">
    <div ng-controller="myController">
        <h3>Select a type</h3>
        <br />
                <td ng-repeat="Type in Types">
                    <a href="#"><img src="Images/type1.png" ng-show="Type.TypeId=='1'" /></a>
                    <a href="#"><img src="Images/type2.png" ng-show="Type.TypeId=='2'" /></a>
                    <a href="#"><img src="Images/type3.png" ng-show="Type.TypeId=='3'" /></a>
                    <a href="#"><img src="Images/type4.png" ng-show="Type.TypeId=='4'" /></a>


and here is my angular controller:

(function () {
    angular.module("myApp", []).controller("myController", TypeCtrlFunction);
    TypeCtrlFunction.$inject = ["$scope", "$http"];
    function TypeCtrlFunction($scope, $http) {
        then(function (result) {
            $scope.DeviceTypes =;


I'd appreciate some help to get me moving forward

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros