diff --git a/src/app/index.interfaces.ts b/src/app/index.interfaces.ts index 66cd635..ba86467 100644 --- a/src/app/index.interfaces.ts +++ b/src/app/index.interfaces.ts @@ -6,7 +6,7 @@ export interface ISynset { } } -export interface IVMScope extends angular.IScope { +export interface IVMScope extends angular.IRootScopeService { vm: Object; } diff --git a/src/app/menu/menu.controller.ts b/src/app/menu/menu.controller.ts index e11696a..d687005 100644 --- a/src/app/menu/menu.controller.ts +++ b/src/app/menu/menu.controller.ts @@ -21,6 +21,7 @@ export class MenuCtrl { private WebPageService: WebPageService, private TagStorageService: TagStorageService, private FileService: FileService) { + $scope.vm = this; this.$scope.$on('wordWasSelected', (event, selectedWord) => {