@@ -24,9 +24,11 @@
<!-- Controllers -->
<script src="scripts/controllers/appController.js"></script>
<script src="scripts/controllers/restAppController.js"></script>
+ <script src="scripts/controllers/githubUserController.js"></script>
<!-- Factories -->
<script src="scripts/factories/restAppFactory.js"></script>
+ <script src="scripts/factories/githubUserFactory.js"></script>
</head>
@@ -0,0 +1,10 @@
+'use strict';
+
+restApp.controller('githubUserController', function($scope, githubUserFactory) {
+ $scope.githubUser = {};
+ $scope.githubUser = githubUserFactory.get().success(function(data) {
+ $scope.githubUser = data;
+ console.log(data);
+ });
+});