rielt: Object = {
buy: {
name: 'Купить',
thing: {
room: {
name: 'Room',
options: {
new: {
name: 'NewHome'
},
secondhend: {
name: 'SecondHend'
}
}
},
home: {
name: 'Home'
}
}
},
};
<mat-form-field>
<mat-select [(ngModel)]="selected">
<mat-option *ngFor="let n of rielt | keyvalue" [value]="n.key">
{{ n.value.name }}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="selected">
<mat-select>
<mat-option *ngFor="let n of rielt[selected].thing | keyvalue" [value]="n.key">
{{ n.value.name }}
</mat-option>
</mat-select>
</mat-form-field>
postData(user) {
return this.http.post('/login', user, {responseType: 'text', observe: 'response'});
}
[[+author:contains=`Сэ́мюэл Кле́менс`:then=`Марк Твен`]]
[[if? &is=`[+width+]:!empty:` &then=`500` &else=`[+width+]`]]