Explorar o código

Wiring Angular route for top contributed repositories on Github

David Leonard %!s(int64=10) %!d(string=hai) anos
pai
achega
61801b44ff
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      angular/scripts/app.js

+ 9 - 0
angular/scripts/app.js

@@ -22,4 +22,13 @@ var restApp = angular.module('restApp', [
                 pageTitle: 'Github User Data'
             }
         });
+
+        .state('githubTopContributions', {
+            url: '/githubTopContributions',
+            templateUrl: 'partials/githubTopContributions.partial.html',
+            controller: 'githubTopContributionsController',
+            data: {
+                pageTitle: 'Top Contributions on Github'
+            }
+        });
 });