martinsonesson.se JsDOC

ProjectsController

new ProjectsController($scope, $log, $timeout, $routeParams, $location, $window, githubService)

Controller for the projects page
Parameters:
Name Type Description
$scope $scope See https://code.angularjs.org/1.3.15/docs/api/ng/type/$rootScope.Scope
$log $log See https://code.angularjs.org/1.3.15/docs/api/ng/service/$log
$timeout $timeout See https://code.angularjs.org/1.3.15/docs/api/ng/service/$timeout
$routeParams $routeParams See https://code.angularjs.org/1.3.15/docs/api/ngRoute/service/$routeParams
$location $location See https://code.angularjs.org/1.3.15/docs/api/ng/service/$location
$window $window See https://code.angularjs.org/1.3.15/docs/api/ng/service/$timeout
githubService services.GithubService Service for fetch data from Github API
Source:

Methods

closeProject(The)

Closes a modal for the project
Parameters:
Name Type Description
The String project name
Source:

openProject(The)

Opens a modal for the project
Parameters:
Name Type Description
The String project name
Source:

shuffle(The)

Randomly shuffles an array
Parameters:
Name Type Description
The Array array to shuffle
Source: