src/app/app.component.ts
selector | app-root |
styleUrls | app.component.css |
templateUrl | ./app.component.html |
Properties |
HostListeners |
constructor(translationService: TranslationService)
|
||||||
Defined in src/app/app.component.ts:26
|
||||||
Parameters :
|
window:drop |
Arguments : '$event'
|
window:drop(event: )
|
Defined in src/app/app.component.ts:32
|
translationService |
translationService:
|
Type : TranslationService
|
Defined in src/app/app.component.ts:26
|
import { Component, HostListener } from '@angular/core';
import { TranslationService } from './services/translation.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
translationService: TranslationService;
constructor(translationService: TranslationService) {
this.translationService = translationService;
translationService.getActualLang();
}
@HostListener('window:drop', ['$event'])
onDragOver(event) {
event.stopPropagation();
event.preventDefault();
}
}
<app-layout></app-layout>