"use strict"; angular.module("vocabulary") .component("premadeLessons", { templateUrl: "/js/redesign-angular/premadeLessons/premade-lessons.html", controller: "PremadeLessonsController" }) .controller("PremadeLessonsController", ["premadeNavigationService", function (premadeNavigationService) { var ctrl = this; ctrl.updateNavigation = function (event) { premadeNavigationService.setSelectedPremadeCategory(event.selectedParentCategoryId, event.selectedSubCategoryId); ctrl.selectedParentCategoryId = event.selectedParentCategoryId; ctrl.selectedSubCategoryId = event.selectedSubCategoryId; } } ]);