<select class="form-control" formControlName="recipe_ingredient">
<option value="">Select Ingredient</option>
<option *ngFor="let ingredient of ingredients | async" [value]="ingredient.id" [selected]="ingredient.id == ri.ingredient">
{{ingredient.id}}-{{ingredient.name}}
</option>
р.ингредиент = 2; Но ниже не возвращает true в приведенном выше коде, поэтому значение не выбрано
ingredient.id == ri.ingredient
может ли кто-нибудь направить
Код в моем файле ts выглядит следующим образом:
editRecipeForm() {
this.editrecipeForm = this.fb.group({
recipe_name: ['', Validators.required ],
recipe_description: ['', Validators.required ],
edit_recipe_image: [],
ingredients11: this.fb.array([
this.getIngredient()
])
});
} 12:49
getIngredient() {
return this.fb.group({
recipe_ingredient: ['', Validators.required ],
recipe_ingredient_quantity: ['', Validators.required ]
});
}
<option ng-selected="ingredient"></option>
этот элемент в коллекции - person Eldho   schedule 01.08.2018