B
setValue
у формы выдает value.forEach is not a function
и всеSize: a a a
B
setValue
у формы выдает value.forEach is not a function
и всеB
N
hashTags: formBuilder.array([])
B
B
hashTags: formBuilder.array([])
B
B
B
hashTags: formBuilder.array([``])
B
B
B
B
N
B
B
B
N
N
B
B
const hashTagControl = <FormArray>this.postForm.get(`hashTags`);
post.hashTags.forEach(x => hashTagControl.push(new FormControl(x)));
this.postForm.patchValue({
title: post.title,
description: post.description,
categoryId: post.category ? post.category.id : null,
isAnonymous: post.isAnonymous
});