Use $rootScope service interface.
This commit is contained in:
parent
97bd55b97e
commit
0c1f2be03a
2 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,7 @@ export interface ISynset {
|
|||
}
|
||||
}
|
||||
|
||||
export interface IVMScope extends angular.IScope {
|
||||
export interface IVMScope extends angular.IRootScopeService {
|
||||
vm: Object;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue