File

src/app/app.component.ts

Metadata

selector app-root
styleUrls app.component.css
templateUrl ./app.component.html

Index

Properties
HostListeners

Constructor

constructor(translationService: TranslationService)
Parameters :
Name Type Optional
translationService TranslationService No

HostListeners

window:drop
Arguments : '$event'
window:drop(event: )

Properties

translationService
translationService: TranslationService
Type : TranslationService
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>

result-matching ""

    No results matching ""