-
-
Save gdyrrahitis/862434d6ec9623f0dd7e85884f1ddebc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { DepartmentService } from "../department.service/department.service"; | |
export class HomeController { | |
constructor( | |
private departmentService: DepartmentService, | |
private $scope: IHomeControllerScope, | |
private $location: ng.ILocationService) { | |
$scope.departments = departmentService.getDepartments(); | |
$scope.navigateToDepartment = this.navigateToDepartment; | |
} | |
navigateToDepartment = (id: number) => { | |
this.$location.path(`/department/${id}`); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment