app/mysfits-service/service/mythicalMysfitsService.py [113:160]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            var app = angular.module('mysfitsApp', []);
        
            var gridScope;
        
            var filterScope;
        
            app.controller('clearFilterController', function($scope) {
            });
        
            app.controller('mysfitsFilterController', function($scope) {
        
              filterScope = $scope;
        
              // The possible options for Mysfits to populate the dropdown filters.
              $scope.filterOptionsList =
               {
                 "categories": [
                   {
                     "title": "Good/Evil",
                     "selections":  [
                       "Good",
                       "Neutral",
                       "Evil"
                     ]
                   },
                   {
                     "title": "Lawful/Chaotic",
                     "selections":  [
                       "Lawful",
                       "Neutral",
                       "Chaotic"
                     ]
                   }
                 ]
               };
        
               $scope.removeFilter = function() {
                 allMysfits = getAllMysfits(applyGridScope);
               }
        
               $scope.queryMysfits = function(filterCategory, filterValue) {
        
                   var filterCategoryQS = "";
                   if (filterCategory==="Good/Evil") {
                     filterCategoryQS = "GoodEvil";
                   } else {
                     filterCategoryQS = "LawChaos"
                   }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



web/index.html [75:122]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    var app = angular.module('mysfitsApp', []);

    var gridScope;

    var filterScope;

    app.controller('clearFilterController', function($scope) {
    });

    app.controller('mysfitsFilterController', function($scope) {

      filterScope = $scope;

      // The possible options for Mysfits to populate the dropdown filters.
      $scope.filterOptionsList =
       {
         "categories": [
           {
             "title": "Good/Evil",
             "selections":  [
               "Good",
               "Neutral",
               "Evil"
             ]
           },
           {
             "title": "Lawful/Chaotic",
             "selections":  [
               "Lawful",
               "Neutral",
               "Chaotic"
             ]
           }
         ]
       };

       $scope.removeFilter = function() {
         allMysfits = getAllMysfits(applyGridScope);
       }

       $scope.queryMysfits = function(filterCategory, filterValue) {

           var filterCategoryQS = "";
           if (filterCategory==="Good/Evil") {
             filterCategoryQS = "GoodEvil";
           } else {
             filterCategoryQS = "LawChaos"
           }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



