"use strict"; angular.module("vocabulary") .component("topicWord", { templateUrl: "/js/redesign-angular/wordLists/topic-word.html", controller: "TopicWordController", bindings: { word: "<" } }) .controller("TopicWordController", ["lessonService", "partsOfSpeechService", function (lessonService, partsOfSpeechService) { var ctrl = this; ctrl.chooseWord = lessonService.toggleChosenWord; ctrl.wordIsChosen = lessonService.wordIsChosen; ctrl.abbreviatePartOfSpeech = partsOfSpeechService.abbreviate; }]);