Преглед изворни кода

Adding routes and script paths for steam sales endpoint

David Leonard пре 10 година
родитељ
комит
bf1c9e4367
2 измењених фајлова са 11 додато и 0 уклоњено
  1. 2 0
      angular/index.html
  2. 9 0
      angular/scripts/app.js

+ 2 - 0
angular/index.html

@@ -26,11 +26,13 @@
         <script src="scripts/controllers/restAppController.js"></script>
         <script src="scripts/controllers/githubUserController.js"></script>
         <script src="scripts/controllers/githubTopContributionsController.js"></script>
+        <script src="scripts/controllers/steamSalesController.js"></script>
 
         <!-- Factories -->
         <script src="scripts/factories/restAppFactory.js"></script>
         <script src="scripts/factories/githubUserFactory.js"></script>
         <script src="scripts/factories/githubTopContributionsFactory.js"></script>
+        <script src="scripts/factories/steamSalesFactory.js"></script>
 
     </head>
 

+ 9 - 0
angular/scripts/app.js

@@ -23,6 +23,15 @@ var restApp = angular.module('restApp', [
             }
         })
 
+        .state('steamSales', {
+            url: '/steamSales',
+            templateUrl: 'partials/steamSales.partial.html',
+            controller: 'steamSalesController',
+            data: {
+                pageTitle: 'Latest Steam Sales'
+            }
+        })
+
         .state('githubTopContributions', {
             url: '/githubTopContributions',
             templateUrl: 'partials/githubTopContributions.partial.html',