Need to use languages
in the subscription callback (when it has a value!)
this.languageService.getAllLanguages().subscribe(languages =>{
this.languages = languages.map((language)=>{
return {
Id:language.Id,
Name: language.Name,
Code: language.Code,
Charset: language.Charset,
Default: language.Default,
Active: language.Active,
SystemId: language.SystemId
}
})
this.languageTableElements = [
{
type: 'checkbox'
},
{
type: 'icon',
label: this.languages[0].Name,
icon: 'assets/icons/flag_pl.png'
}
]
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…