styleUrls: [ './language-chooser.component.scss' ]
})
export class LanguageChooserComponent {
- @ViewChild('modal') modal: ElementRef
+ @ViewChild('modal', { static: true }) modal: ElementRef
languages: { id: string, label: string }[] = []
}
show () {
- this.modalService.open(this.modal)
+ this.modalService.open(this.modal, { centered: true })
}
buildLanguageLink (lang: { id: string }) {