Answer the question
In order to leave comments, you need to log in
How to change the output of information for an attribute?
Is it possible somehow in Angular 2+ to make the output information be replaced with what I need. Those. I have a model like this:
export class Attribute{
constructor(
public attribut_id:number,
public name: string,
public attribut_type: string,
public attribut_source: string
) { }
}
attribut_type
, attribut_source
is it possible to somehow change these numbers to the information I need. To then display in select. attribut_type: 0 == attribut_type: 'Привязка пользователей',
attribut_type: 1 == attribut_type: 'Текст',
attribut_type: 2 == attribut_type: 'Дата',
attribut_type: 3 == attribut_type: 'Число'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question