Answer the question
In order to leave comments, you need to log in
Angular How to make a nested object into an object?
Good day to all!
I recently started learning Angular, so don't swear if this seems like a noob question.
I don't understand how to implement the following.
There is a request.ts class:
export class Request {
id: number;
date_create: string;
user_id: number;
status: number;
message: string;
}
import { Request } from './request';
export const REQUESTS: Request[] = [
{ id: 11, date_create: '11-11-2017', user_id: 2, status: 1, message: 'Новое сообщение' }
statuses = [
{id: 0, name: "Отправлена"},
{id: 1, name: "На рассмотрении"},
{id: 2, name: "Принята"},
{id: 3, name: "Отклонена"}
];
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