"use strict"; angular.module("vocabulary") .component("wordDetails", { templateUrl: "/js/redesign-angular/words/word-details.html", controller: "WordDetailsController", bindings: { word: "<", showDefinition: ' 0; }; ctrl.getWordDefinition = function () { return $sce.trustAsHtml(ctrl.word.definition); }; ctrl.getFirstContextSentence = function () { return $sce.trustAsHtml(ctrl.word.contextSentences[0].text); }; }]);