{"id":480978,"date":"2026-05-25T16:37:38","date_gmt":"2026-05-25T16:37:38","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=480978"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=480978","title":{"rendered":"Reactive Forms vs Signal Forms: \u042d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0444\u043e\u0440\u043c \u0432 Angular"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u00ab\u041a\u0430\u043a \u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0431\u043e\u044f\u0442\u044c\u0441\u044f \u0438 \u043f\u043e\u043b\u044e\u0431\u0438\u043b \u0441\u0438\u0433\u043d\u0430\u043b\u044b\u00bb.<\/h3>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c \u0447\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u0430\u043d\u043e\u043d\u0441 Signal Forms \u0431\u044b\u043b\u0430: \u00ab\u041e, \u043d\u0435\u0442! \u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u0435\u043b\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u044b\u00bb. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 Template Driven Forms \u0438 Reactive \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e\u0433\u043e. \u0410 \u0435\u0449\u0435 \u0431\u044b\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0438 \u0443\u0436\u0435 \u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0435\u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0432\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u043c\u043e\u0435. \u042f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0440\u044c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 \u0442\u0430\u043a\u043e\u0439 \u0433\u0438\u0433\u0430\u043d\u0442\u0441\u043a\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0444\u043e\u0440\u043c\u044b \u0438  \u0431\u043e\u043b\u0435\u0435 1500 Form Control \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0432\u0441\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e. \u041d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Angular \u0440\u0435\u0448\u0438\u043b\u0430 \u0447\u0442\u043e \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u0447\u043d\u043e \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0449\u0435 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439.  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0432\u044b\u0440\u044f\u043d\u0438\u044f \u0432 \u043d\u043e\u0432\u043e\u043c API \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u0435\u0447\u0435\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u0440\u0435\u0445 \u043b\u0438\u0442\u0440\u043e\u0432 \u043a\u043e\u0444\u0435 \u043c\u043e\u044f \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0441\u043c\u044f\u0433\u0447\u0438\u043b\u0430\u0441\u044c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Angular \u0441\u0442\u0430\u0440\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a, \u0430 Signal Forms \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0441\u0442\u0440\u0430\u0448\u043d\u044b. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0444\u043e\u0440\u043c\u0430 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u043e\u0441\u043b\u0430\u0441\u044c \u0438 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043b\u0430\u0441\u044c \u0438 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0432\u0435\u0448\u0430\u043d\u0430 \u0433\u0438\u0440\u043b\u044f\u043d\u0434\u0430\u043c\u0438 \u0438\u0437 <code>FormArray<\/code>  \u0438 <code>FormGroup<\/code>\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u043a\u0430\u043c\u0438 \u0430\u043a\u0438 \u0451\u043b\u043a\u0430 \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u044f\u044f.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435, \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c (\u043d\u0435\u0441\u0442\u0430\u0440\u0435\u044e\u0449\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430) \u0438 \u043d\u043e\u0432\u044b\u043c \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u043c.<\/p>\n<p><strong>\u0421\u043f\u043e\u0439\u043b\u0435\u0440:<\/strong> \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u043f\u043b\u043e\u0445,  \u043d\u043e \u0447\u0430\u0439\u043d\u0443\u044e \u043b\u043e\u0436\u0435\u0447\u043a\u0443 \u0434\u0435\u0433\u0442\u044f \u044f \u0432\u0441\u0435 \u0436\u0435 \u043f\u0440\u0438\u043f\u0430\u0441 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043b\u044e\u0431\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439. <\/p>\n<h3>Reactive Forms: \u00ab\u0422\u044f\u0436\u0435\u043b\u043e\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435\u00bb \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430.<\/h3>\n<h4>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (\u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u0434\u0440\u0443\u0433 \u0437\u0430\u0431\u044b\u043b\u0438)<\/h4>\n<p>Reactive Forms \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 \u0442\u0440\u0451\u0445 \u043a\u0438\u0442\u0430\u0445:\u00a0<code>FormControl<\/code>,\u00a0<code>FormGroup<\/code>\u00a0\u0438\u00a0<code>FormArray<\/code>. \u041f\u043b\u044e\u0441 RxJS \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u044e \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u043c\u0430\u0433\u0438\u044e. \u0412\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u043d\u0443\u0436\u043d\u044b\u0439 \u0432\u0430\u043c \u043a\u043b\u0430\u0441\u0441 \u0444\u043e\u0440\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0436\u0438\u0432\u0451\u0442 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u0435\u0433\u043e \u043a \u0448\u0430\u0431\u043b\u043e\u043d\u0443. \u0412\u0441\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e. \u041d\u044e\u0430\u043d\u0441\u044b \u0435\u0441\u0442\u044c, \u043d\u043e \u043a \u043d\u0438\u043c \u043d\u0430\u0434\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u043d\u0443\u0442\u044c (\u0438\u043b\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043c\u0438\u0440\u0438\u0442\u044c\u0441\u044f \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u0432\u044b\u043a\u043d\u0443\u0442\u044c).<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0437\u0430\u043a\u0430\u0437\u0430, \u044f \u0434\u0443\u043c\u0430\u044e \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0432\u0441\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c:<\/p>\n<pre><code class=\"typescript\">interface Order {  client: {    name: string;    email: string;  };  items: Array&lt;{    product: string;    quantity: number;    price: number;  }&gt;;  total: number;}\/\/ \u041a\u043e\u0434 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430orderForm = new FormGroup({  client: new FormGroup({    name: new FormControl('', [Validators.required]),    email: new FormControl('', [Validators.required, Validators.email])  }),  items: new FormArray([]),  total: new FormControl({ value: 0, disabled: true })});get itemsArray(): FormArray {  return this.orderForm.get('items') as FormArray;}addItem() {  const itemGroup = new FormGroup({    product: new FormControl('', Validators.required),    quantity: new FormControl(1, [Validators.required, Validators.min(1)]),    price: new FormControl(0, [Validators.required, Validators.min(0.01)])  });    this.itemsArray.push(itemGroup);  this.updateTotal(); \/\/ \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443}updateTotal() {  let total = 0;  this.itemsArray.controls.forEach(group =&gt; {    const quantity = group.get('quantity')?.value || 0;    const price = group.get('price')?.value || 0;    total += quantity * price;  });  this.orderForm.get('total')?.setValue(total);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0441\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u043e. \u0415\u0441\u043b\u0438 \u043c\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043c \u043f\u043e\u043b\u0435\u0439 \u0442\u0430\u043a \u0434\u043e 50 \u0438 \u0441 1-2 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u0430, \u043d\u043e \u0443\u0436\u0435 \u0445\u0443\u0436\u0435. \u0410 \u0435\u0441\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0438 \u0441\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u043c\u0438\u043c\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0445  <code>FormGroup<\/code>\u00a0\u0438\u00a0<code>FormArray<\/code> \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e.  <\/p>\n<h3>\u0413\u0434\u0435 Reactive Forms\u2026 \u043d\u0443, \u0442\u0430\u043a\u0438\u0435 \u0441\u0435\u0431\u0435<\/h3>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0435\u0440\u0432\u0430\u044f, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u0431\u043e\u043b\u044c \u0432 \u043f\u043e\u044f\u0441\u043d\u0438\u0446\u0435\u00bb:<\/strong>\u00a0\u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f. \u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u044e\u0442, \u043d\u043e \u0432\u0441\u0435 \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443:\u00a0<code>this.orderForm.get('items') as FormArray<\/code>. \u0411\u0435\u0437\u00a0<code>as<\/code>\u00a0TypeScript \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0<code>get()<\/code>\u00a0\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>AbstractControl | null<\/code>. \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432\u044b \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u0442\u0435 \u0447\u0442\u043e <code>null<\/code> \u0442\u0430\u043c \u043d\u0435\u0442, \u0447\u0442\u043e \u0442\u0430\u043c\u00a0<code>FormArray<\/code>. \u0418 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e.<\/p>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0442\u043e\u0440\u0430\u044f, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u00bb:<\/strong>\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435:<\/p>\n<pre><code class=\"typescript\">this.orderForm.get('client.email')?.valueChanges.subscribe(email =&gt; {  \/\/ \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u043e \u0442\u043e \u0443\u043c\u043d\u043e\u0435});<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b \u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u00a0<code>unsubscribe<\/code>? \u0412\u0441\u0435 \u0436\u0435 \u0437\u043d\u0430\u044e\u0442 \u043f\u0440\u043e \u043f\u0440\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438?  \u0414\u0430, \u0432\u0435\u0434\u044c? \u0418\u043d\u0430\u0447\u0435 \u044d\u0442\u043e \u0447\u0440\u0435\u0432\u0430\u0442\u043e \u0443\u0442\u0435\u0447\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0418 \u0442\u0430\u043a \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044f. <\/p>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u0440\u0435\u0442\u044c\u044f, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442?\u00bb:<\/strong>\u00a0\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043e\u0442\u043d\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 Change Detection \u043d\u0430 \u0432\u0441\u0435\u0439 \u0444\u043e\u0440\u043c\u0435, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0447\u0438\u0445\u0430\u0442\u044c \u0438 \u0437\u0430\u0434\u0443\u043c\u0447\u0438\u0432\u043e \u0436\u0435\u0432\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0435\u0441\u0435\u043b\u043e, \u043a\u043e\u0433\u0434\u0430 \u0444\u043e\u0440\u043c\u0430 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f. \u041d\u0435\u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c, \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u044f\u0439\u0442\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440, \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<h3>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0430 Reactive Forms: \u00ab\u041a\u0443\u0434\u0430 \u0442\u044b \u043d\u0430\u0436\u0430\u043b?\u00bb<\/h3>\n<p>\u041d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0440\u0435\u0434\u043a\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431  \u0434\u0435\u043b\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u044b \u044d\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u044b \u0438\u0437 JSON-\u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0431\u044d\u043a\u0435 \u0438 \u0433\u0434\u0435 \u0430\u0432\u0442\u043e\u0440 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.<\/p>\n<pre><code class=\"typescript\">\/\/ \u041a\u043e\u043d\u0444\u0438\u0433 \u043e\u0442 \u0431\u044d\u043a\u0435\u043d\u0434\u0430const formConfig = {  fields: [    { type: 'text', label: '\u0412\u0430\u0448\u0435 \u0438\u043c\u044f', required: true },    { type: 'email', label: 'Email', validators: ['email'] },    { type: 'select', label: '\u0413\u043e\u0440\u043e\u0434', options: ['\u041c\u043e\u0441\u043a\u0432\u0430', '\u0421\u041f\u0431', '\u041a\u0430\u0437\u0430\u043d\u044c'] },    \/\/ ... \u0435\u0449\u0451 20 \u043f\u043e\u043b\u0435\u0439  ]};\/\/ \u0424\u0430\u0431\u0440\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u044bfunction createDynamicForm(config: any): FormGroup {  const group: any = {};    config.fields.forEach((field, index) =&gt; {    const validators = [];    if (field.required) validators.push(Validators.required);    if (field.validators?.includes('email')) validators.push(Validators.email);        group[`field_${index}`] = new FormControl('', validators);  });    return new FormGroup(group);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u043a\u0430 \u0438\u043c\u0435\u0435\u0448\u044c \u0434\u0435\u043b\u043e \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u043b\u043e\u0441\u043a\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b (\u0430\u0434\u0440\u0435\u0441 \u0441 \u0443\u043b\u0438\u0446\u0435\u0439\/\u0434\u043e\u043c\u043e\u043c\/\u043a\u0432\u0430\u0440\u0442\u0438\u0440\u043e\u0439) \u0438\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a  (\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0441\u043f\u0438\u0441\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432), \u0442\u043e \u0434\u0435\u043d\u044c \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0442\u0435\u0440\u044f\u0442\u044c \u0441\u0432\u043e\u044e \u0442\u043e\u043c\u043d\u043e\u0441\u0442\u044c. \u0410 \u0435\u0441\u043b\u0438 \u0435\u0449\u0435 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043d\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u0430\u044f, \u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u0435\u0439&#8230; \u0422\u043e&#8230; \u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u0430\u0434.<\/p>\n<h3>Signal Forms: \u00ab\u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043d\u0430\u0434\u0435\u0436\u0434\u0443\u00bb<\/h3>\n<h4>\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f: \u00ab\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u044b\u00bb<\/h4>\n<p>Signal Forms \u044d\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u044b\u0439 API, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u0430\u044f \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430. \u0412\u044b \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438\u0437 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u0414\u0430\u043d\u043d\u044b\u0435 \u0436\u0438\u0432\u0443\u0442 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u0444\u043e\u0440\u043c\u0430 \u044d\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0441 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0435\u0439 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0430\u043a \u00ab\u0432\u043e\u0437\u044c\u043c\u0438\u0442\u0435 \u043a\u0443\u0441\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u043c\u0443 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e\u00bb. \u0422\u0430\u043a \u043e\u043d\u043e \u0438 \u0435\u0441\u0442\u044c.<\/p>\n<pre><code class=\"typescript\">\/\/ \u041c\u043e\u0434\u0435\u043b\u044c \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043bprivate orderModel = signal&lt;Order&gt;({  client: { name: '', email: '' },  items: [{ product: '', quantity: 1, price: 0 }],  total: 0});\/\/ \u0424\u043e\u0440\u043c\u0430 \u2014 \u043e\u0431\u0451\u0440\u0442\u043a\u0430 \u043d\u0430\u0434 \u043c\u043e\u0434\u0435\u043b\u044c\u044eprotected orderForm = form(this.orderModel, (path) =&gt; {  required(path.client.name);  required(path.client.email);  email(path.client.email);    applyEach(path.items, (item) =&gt; {    required(item.product);    min(item.quantity, 1);    min(item.price, 0.01);  });    \/\/ \u041a\u0430\u0441\u0442\u043e\u043c\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u0439 \u0441\u0443\u043c\u043c\u044b  validate(path, (ctx) =&gt; {    const total = ctx.value().items.reduce(      (sum, item) =&gt; sum + (item.quantity * item.price), 0    );    if (total === 0) {      return { kind: 'emptyOrder', message: '\u0417\u0430\u043a\u0430\u0437 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c' };    }    return undefined;  });});\/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0443\u0442\u0430\u0446\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430addItem() {  this.orderModel.update(order =&gt; ({    ...order,    items: [...order.items, { product: '', quantity: 1, price: 0 }]  }));}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0435\u0442\u00a0<code>FormArray<\/code>, \u043d\u0435\u0442\u00a0<code>push()<\/code>\u00a0\u0438\u00a0<code>removeAt()<\/code>. \u0412\u0441\u0451, \u0447\u0442\u043e \u0432\u044b \u0443\u043c\u0435\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u0432 JavaScript, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0437\u0434\u0435\u0441\u044c. \u042d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a \u0441\u043d\u044f\u0442\u044c \u043e\u0431\u0443\u0432\u044c \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u043e\u0439 \u0445\u043e\u0434\u044c\u0431\u044b \u0438  \u0441\u0440\u0430\u0437\u0443 \u043b\u0435\u0433\u0447\u0435 \u0434\u044b\u0448\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h3>\u0413\u0434\u0435 Signal Forms \u0445\u043e\u0440\u043e\u0448\u0438 (\u0441\u043f\u043e\u0439\u043b\u0435\u0440: \u043f\u043e\u0447\u0442\u0438 \u0432\u0435\u0437\u0434\u0435)<\/h3>\n<p><strong>\u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f!<\/strong><\/p>\n<p>\u0412 Signal Forms \u043d\u0435\u0442\u00a0<code>AbstractControl | null<\/code>. \u0415\u0441\u0442\u044c \u0442\u0438\u043f\u00a0<code>FieldTree&lt;T&gt;<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0443\u0435\u0442  \u0432\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435\u00a0<code>orderForm.items[0].product<\/code>, TypeScript \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439. \u041d\u0438\u043a\u0430\u043a\u0438\u0445\u00a0<code>as unknown as<\/code>. \u0412\u0441\u0435, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043b\u0430\u0431\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p><strong>\u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445<\/strong><\/p>\n<p><code>valueChanges.subscribe()<\/code>\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0448\u043b\u0438 \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0438\u0445 <code>computed<\/code>\u00a0\u0438\u00a0<code>effect<\/code>. \u0421\u0438\u0433\u043d\u0430\u043b\u044b \u0441\u0430\u043c\u0438 \u0437\u043d\u0430\u044e\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f.<\/p>\n<pre><code class=\"typescript\">\/\/ \u0420\u0430\u043d\u044c\u0448\u0435: \u0440\u0443\u0447\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0430subscription = orderForm.get('client.email')?.valueChanges.subscribe(...);ngOnDestroy() { this.subscription.unsubscribe(); }\/\/ \u0422\u0435\u043f\u0435\u0440\u044c: \u0432\u0441\u0451 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438readonly emailValidationMessage = computed(() =&gt; {  const emailField = this.orderForm.client.email;  if (emailField.touched() &amp;&amp; emailField.invalid()) {    return 'Email looks suspicious...';  }  return '';});<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/strong><\/p>\n<p>\u0421\u0438\u0433\u043d\u0430\u043b\u044b \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u0447\u0435\u0447\u043d\u043e. \u0412 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u043e\u0442\u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <code>computed<\/code> \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 99 \u043f\u043e\u043b\u0435\u0439 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0448\u0435\u043b\u043e\u0445\u043d\u0443\u0442\u0441\u044f. \u042f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u0442\u0435\u0441\u0442 \u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445  \u043d\u0430 100 \u0438 \u043f\u043e\u0442\u043e\u043c \u043d\u0430 200 \u043f\u043e\u043b\u0435\u0439 \u0438 \u0432 \u043c\u043e\u0451\u043c \u0442\u0435\u0441\u0442\u0435 Signal Forms \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0430 ~35% \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0432\u044b\u0434\u043e\u0445\u043d\u0443\u043b \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u00ab\u0441\u043f\u0430\u0441\u0438\u0431\u043e\u00bb.<\/p>\n<h4>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438<\/h4>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u0443\u0436\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0430 \u0447\u0442\u043e \u0436\u0435 \u043f\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0435? \u0412\u043e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u0445:  <\/p>\n<pre><code class=\"typescript\">@Component({...})export class SurveyBuilderComponent {  \/\/ \u041c\u043e\u0434\u0435\u043b\u044c: \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432  private surveyModel = signal&lt;Survey&gt;({    title: '',    questions: [      { id: crypto.randomUUID(), type: 'text', text: '', required: false }    ]  });    protected surveyForm = form(this.surveyModel, (path) =&gt; {    required(path.title);        \/\/ \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435    applyEach(path.questions, (question) =&gt; {      required(question.text);            \/\/ \u0423\u0441\u043b\u043e\u0432\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f: \u0434\u043b\u044f select \u043d\u0443\u0436\u043d\u044b \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u0432\u0435\u0442\u043e\u0432      applyWhen(question.options, () =&gt; question.type() === 'select', (opts) =&gt; {        required(opts);        minLength(opts, 1);      });    });  });    addQuestion() {    this.surveyModel.update(survey =&gt; ({      ...survey,      questions: [...survey.questions, {        id: crypto.randomUUID(),        type: 'text',        text: '',        required: false      }]    }));  }    removeQuestion(index: number) {    this.surveyModel.update(survey =&gt; ({      ...survey,      questions: survey.questions.filter((_, i) =&gt; i !== index)    }));  }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d, \u043a\u0441\u0442\u0430\u0442\u0438, \u0442\u043e\u0436\u0435 \u0441\u0442\u0430\u043b \u0441\u0442\u0430\u043b \u043f\u0440\u043e\u0449\u0435:  <\/p>\n<pre><code class=\"xml\">&lt;form&gt;  &lt;input [field]=\"surveyForm.title\" placeholder=\"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u043f\u0440\u043e\u0441\u0430\" \/&gt;    @for (question of surveyModel().questions; track question.id; let i = $index) {    &lt;div class=\"question-card\"&gt;      &lt;input [field]=\"surveyForm.questions[i].text\" placeholder=\"\u0422\u0435\u043a\u0441\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\" \/&gt;            &lt;select [field]=\"surveyForm.questions[i].type\"&gt;        &lt;option value=\"text\"&gt;\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439&lt;\/option&gt;        &lt;option value=\"select\"&gt;\u0412\u044b\u0431\u043e\u0440 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430&lt;\/option&gt;      &lt;\/select&gt;            @if (surveyForm.questions[i].type() === 'select') {        &lt;input [field]=\"surveyForm.questions[i].options\" placeholder=\"\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b (\u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e)\" \/&gt;      }            &lt;button type=\"button\" (click)=\"removeQuestion(i)\"&gt;\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441&lt;\/button&gt;    &lt;\/div&gt;  }    &lt;button type=\"button\" (click)=\"addQuestion()\"&gt;+ \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441&lt;\/button&gt;&lt;\/form&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0435\u0442 \u043d\u0438\u00a0<code>FormArrayName<\/code>, \u043d\u0438\u00a0<code>formArrayName<\/code>\u00a0\u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435, \u043d\u0435\u0442 \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u044b \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u00a0<code>track<\/code>\u00a0\u043f\u043e ID. \u0418 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h3>\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u044b<\/h3>\n<h4>\u0426\u0438\u0444\u0440\u044b \u0438 \u0444\u0430\u043a\u0442\u044b<\/h4>\n<p>\u042f \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0431\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043d\u0430 \u0442\u0440\u0451\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445. \u0412\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">Reactive Forms<\/p>\n<\/th>\n<th>\n<p align=\"left\">Signal Forms<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0444\u043e\u0440\u043c\u0430 (5 \u043f\u043e\u043b\u0435\u0439)<\/p>\n<\/td>\n<td>\n<p align=\"left\">15 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">12 \u0441\u0442\u0440\u043e\u043a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u043b\u043e\u0436\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0441 3 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">120 \u0441\u0442\u0440\u043e\u043a + 8 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a<\/p>\n<\/td>\n<td>\n<p align=\"left\">85 \u0441\u0442\u0440\u043e\u043a + 0 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a (50 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432)<\/p>\n<\/td>\n<td>\n<p align=\"left\">65ms \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">42ms \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0438\u0437 100 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\">48ms (CD \u0446\u0438\u043a\u043b)<\/p>\n<\/td>\n<td>\n<p align=\"left\">29ms<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0441 Reactive \u043d\u0430 Signal \u0441\u043d\u0438\u0437\u0438\u043b\u043e\u0441\u044c \u043d\u0430 70%. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e TypeScript \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f \u0432\u00a0<code>get('<\/code><a href=\"http:\/\/path.to\" rel=\"noopener noreferrer nofollow\"><code>path.to<\/code><\/a><code>.field')<\/code>.<\/p>\n<h3>\u0413\u0434\u0435 \u043f\u043e\u0434\u0432\u043e\u0445? \u041b\u043e\u0436\u043a\u0430 \u0434\u0451\u0433\u0442\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438?<\/h3>\n<p>\u0421\u0438\u0433\u043d\u0430\u043b\u044b \u0448\u0442\u0443\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f, \u043d\u043e \u043d\u0435 \u0431\u0435\u0437 \u043d\u044e\u0430\u043d\u0441\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><strong>Signal Forms \u043e\u043d\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435.<\/strong>\u00a0\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e API \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0437\u0430\u0432\u0442\u0440\u0430. \u0418\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0441\u044f\u0446. \u0418\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0447\u0430\u0441 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0434 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u043e\u0439. \u0412 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0441 \u044d\u0442\u0438\u043c \u0438\u0434\u0442\u0438, \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u0441 \u043f\u0430\u0440\u0430\u0448\u044e\u0442\u043e\u043c \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0443\u043a\u043b\u0430\u0434\u0447\u0438\u043a\u0430. \u0412\u0440\u043e\u0434\u0435 \u0438 \u0430\u0437\u0430\u0440\u0442\u043d\u043e, \u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043e\u044f\u0437\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f.<\/strong>\u00a0\u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u0442\u044c \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c\u00a0<code>FormGroup<\/code>\u00a0\u043d\u0430\u00a0<code>form()<\/code>. \u041f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0451: \u043e\u0442 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0434\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 500 \u0444\u043e\u0440\u043c  \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434  \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0431\u043e\u0442\u044b?<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u0431\u0435\u0434\u043d\u0430\u044f.<\/strong>\u00a0\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u043d\u0433\u043b\u043e\u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e Signal Forms \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e. \u0422\u043e\u043b\u044c\u043a\u043e RFC \u0438 \u043f\u0430\u0440\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e\u0442 \u0441\u043c\u0435\u043b\u044c\u0447\u0430\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e\u0442. \u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0435 \u0432\u0441\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442.<\/strong>\u00a0\u00a0<code>ngx-formly<\/code>,\u00a0<code>ng-zorro<\/code>,\u00a0<code>material<\/code>\u00a0 \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0435\u0449\u0451 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Signal Forms. \u041f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043b\u0438\u0431\u043e \u0436\u0434\u0430\u0442\u044c, \u043b\u0438\u0431\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043e\u0431\u0451\u0440\u0442\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c? \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b<\/h3>\n<h4>\u0420\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u0432\u0430\u0448 \u0432\u044b\u0431\u043e\u0440, \u0435\u0441\u043b\u0438:<\/h4>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442\u0443 \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u0438 \u043e\u043d \u0443\u0436\u0435 \u043d\u0430 Angular 12-16<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0451\u0442 \u043e\u0434\u044b RxJS \u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0436\u0438\u0437\u043d\u044c \u0431\u0435\u0437\u00a0<code>switchMap<\/code><\/p>\n<\/li>\n<li>\n<p>\u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 API<\/p>\n<\/li>\n<li>\n<p>\u0412\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0446\u0435\u043d\u043e\u0438 (\u0431\u0430\u043d\u043a\u0438, \u0433\u043e\u0441. \u0443\u0447\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u043e\u0435 \u041f\u041e)<\/p>\n<\/li>\n<\/ul>\n<h4>Signal Forms \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438:<\/h4>\n<ul>\n<li>\n<p>\u0412\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 Angular 21+<\/p>\n<\/li>\n<li>\n<p>\u0412\u0430\u043c \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u043f\u0438\u0441\u0430\u0442\u044c\u00a0<code>as FormArray<\/code>\u00a0\u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u00ab\u0430 \u0432\u0434\u0440\u0443\u0433 API \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f\u00bb<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0435\u0434\u0438\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<h4>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b<\/h4>\n<ul>\n<li>\n<p>\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 RFC \u043f\u043e Signal Forms (\u0430\u043d\u0433\u043b.) \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u043e\u0433 Deborah Kurata, \u043e\u043d\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u044b.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: \u00ab\u0421\u0442\u0430\u0440\u044b\u0439 \u0434\u0440\u0443\u0433 \u043b\u0443\u0447\u0448\u0435 \u043d\u043e\u0432\u044b\u0445 \u0434\u0432\u0443\u0445?\u00bb<\/h3>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0434\u043b\u044f \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f: Reactive Forms \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043d\u0443\u0442\u0441\u044f. \u042d\u0442\u043e \u043a\u0430\u043a jQuery, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440, \u0445\u043e\u0442\u044f \u0443\u0436\u0435 2026 \u0433\u043e\u0434. \u0421\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u0432\u0435\u0448\u0438\u0432\u0430\u044e\u0442 \u043b\u044e\u0431\u044b\u0435 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412\u0442\u043e\u0440\u0430\u044f: Signal Forms \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. \u041e\u043d\u0438 \u0440\u0435\u0448\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0443\u0447\u0438\u043b\u0438 \u043d\u0430\u0441 \u0433\u043e\u0434\u0430\u043c\u0438: \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0444\u043e\u0440\u043c. \u0418 \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>Angular<\/code>  \u0434\u043e\u0432\u0435\u0434\u0451\u0442 API \u0434\u043e \u0443\u043c\u0430 (\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c), \u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0435\u00a0<code>FormArray<\/code>\u00a0\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u00a0<code>var<\/code>\u00a0 \u0441 \u043b\u0451\u0433\u043a\u043e\u0439 \u0443\u043b\u044b\u0431\u043a\u043e\u0439 \u043d\u043e\u0441\u0442\u0430\u043b\u044c\u0433\u0438\u0438.<\/p>\n<p><strong>\u041c\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 \u0432\u0435\u0440\u0434\u0438\u043a\u0442:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 Pet-\u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0438\u043b\u0438 <code>MVP<\/code> \u0442\u043e \u0431\u0435\u0440\u0438\u0442\u0435 <code>Signal Forms<\/code> \u0431\u0435\u0437 \u0440\u0430\u0437\u0434\u0443\u043c\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e  \u0442\u043e \u0436\u0434\u0438\u0442\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0448\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 <code>Signal Forms<\/code>? \u0421\u043b\u043e\u0432\u0438\u043b\u0438 \u0431\u0430\u0433\u0438 \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0432 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0435? \u0414\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1039254\/\">https:\/\/habr.com\/ru\/articles\/1039254\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u00ab\u041a\u0430\u043a \u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0431\u043e\u044f\u0442\u044c\u0441\u044f \u0438 \u043f\u043e\u043b\u044e\u0431\u0438\u043b \u0441\u0438\u0433\u043d\u0430\u043b\u044b\u00bb.\u041f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c \u0447\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u0430\u043d\u043e\u043d\u0441 Signal Forms \u0431\u044b\u043b\u0430: \u00ab\u041e, \u043d\u0435\u0442! \u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u0435\u043b\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u044b\u00bb. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 Template Driven Forms \u0438 Reactive \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e\u0433\u043e. \u0410 \u0435\u0449\u0435 \u0431\u044b\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0438 \u0443\u0436\u0435 \u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0435\u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0432\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u043c\u043e\u0435. \u042f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0440\u044c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 \u0442\u0430\u043a\u043e\u0439 \u0433\u0438\u0433\u0430\u043d\u0442\u0441\u043a\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0444\u043e\u0440\u043c\u044b \u0438  \u0431\u043e\u043b\u0435\u0435 1500 Form Control \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0432\u0441\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e. \u041d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Angular \u0440\u0435\u0448\u0438\u043b\u0430 \u0447\u0442\u043e \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u0447\u043d\u043e \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0449\u0435 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439.  \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0432\u044b\u0440\u044f\u043d\u0438\u044f \u0432 \u043d\u043e\u0432\u043e\u043c API \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u0435\u0447\u0435\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u0440\u0435\u0445 \u043b\u0438\u0442\u0440\u043e\u0432 \u043a\u043e\u0444\u0435 \u043c\u043e\u044f \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0441\u043c\u044f\u0433\u0447\u0438\u043b\u0430\u0441\u044c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Angular \u0441\u0442\u0430\u0440\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a, \u0430 Signal Forms \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0441\u0442\u0440\u0430\u0448\u043d\u044b. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0444\u043e\u0440\u043c\u0430 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u043e\u0441\u043b\u0430\u0441\u044c \u0438 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043b\u0430\u0441\u044c \u0438 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0432\u0435\u0448\u0430\u043d\u0430 \u0433\u0438\u0440\u043b\u044f\u043d\u0434\u0430\u043c\u0438 \u0438\u0437 FormArray  \u0438 FormGroup\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u043a\u0430\u043c\u0438 \u0430\u043a\u0438 \u0451\u043b\u043a\u0430 \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u044f\u044f.\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435, \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c (\u043d\u0435\u0441\u0442\u0430\u0440\u0435\u044e\u0449\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430) \u0438 \u043d\u043e\u0432\u044b\u043c \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u043c.\u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u043f\u043b\u043e\u0445,  \u043d\u043e \u0447\u0430\u0439\u043d\u0443\u044e \u043b\u043e\u0436\u0435\u0447\u043a\u0443 \u0434\u0435\u0433\u0442\u044f \u044f \u0432\u0441\u0435 \u0436\u0435 \u043f\u0440\u0438\u043f\u0430\u0441 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043b\u044e\u0431\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439. Reactive Forms: \u00ab\u0422\u044f\u0436\u0435\u043b\u043e\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435\u00bb \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430.\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (\u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u0434\u0440\u0443\u0433 \u0437\u0430\u0431\u044b\u043b\u0438)Reactive Forms \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 \u0442\u0440\u0451\u0445 \u043a\u0438\u0442\u0430\u0445:\u00a0FormControl,\u00a0FormGroup\u00a0\u0438\u00a0FormArray. \u041f\u043b\u044e\u0441 RxJS \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u044e \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u043c\u0430\u0433\u0438\u044e. \u0412\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u043d\u0443\u0436\u043d\u044b\u0439 \u0432\u0430\u043c \u043a\u043b\u0430\u0441\u0441 \u0444\u043e\u0440\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0436\u0438\u0432\u0451\u0442 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u0435\u0433\u043e \u043a \u0448\u0430\u0431\u043b\u043e\u043d\u0443. \u0412\u0441\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e. \u041d\u044e\u0430\u043d\u0441\u044b \u0435\u0441\u0442\u044c, \u043d\u043e \u043a \u043d\u0438\u043c \u043d\u0430\u0434\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u043d\u0443\u0442\u044c (\u0438\u043b\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043c\u0438\u0440\u0438\u0442\u044c\u0441\u044f \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u0432\u044b\u043a\u043d\u0443\u0442\u044c).\u0412\u043e\u0442 \u0442\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0437\u0430\u043a\u0430\u0437\u0430, \u044f \u0434\u0443\u043c\u0430\u044e \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0432\u0441\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c:interface Order {  client: {    name: string;    email: string;  };  items: Array&lt;{    product: string;    quantity: number;    price: number;  }&gt;;  total: number;}\/\/ \u041a\u043e\u0434 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430orderForm = new FormGroup({  client: new FormGroup({    name: new FormControl(&#187;, [Validators.required]),    email: new FormControl(&#187;, [Validators.required, Validators.email])  }),  items: new FormArray([]),  total: new FormControl({ value: 0, disabled: true })});get itemsArray(): FormArray {  return this.orderForm.get(&#8216;items&#8217;) as FormArray;}addItem() {  const itemGroup = new FormGroup({    product: new FormControl(&#187;, Validators.required),    quantity: new FormControl(1, [Validators.required, Validators.min(1)]),    price: new FormControl(0, [Validators.required, Validators.min(0.01)])  });    this.itemsArray.push(itemGroup);  this.updateTotal(); \/\/ \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443}updateTotal() {  let total = 0;  this.itemsArray.controls.forEach(group =&gt; {    const quantity = group.get(&#8216;quantity&#8217;)?.value || 0;    const price = group.get(&#8216;price&#8217;)?.value || 0;    total += quantity * price;  });  this.orderForm.get(&#8216;total&#8217;)?.setValue(total);}\u0412\u0441\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u043e. \u0415\u0441\u043b\u0438 \u043c\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043c \u043f\u043e\u043b\u0435\u0439 \u0442\u0430\u043a \u0434\u043e 50 \u0438 \u0441 1-2 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u0430, \u043d\u043e \u0443\u0436\u0435 \u0445\u0443\u0436\u0435. \u0410 \u0435\u0441\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0438 \u0441\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u043c\u0438\u043c\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0445  FormGroup\u00a0\u0438\u00a0FormArray \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e.  \u0413\u0434\u0435 Reactive Forms\u2026 \u043d\u0443, \u0442\u0430\u043a\u0438\u0435 \u0441\u0435\u0431\u0435\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0435\u0440\u0432\u0430\u044f, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u0431\u043e\u043b\u044c \u0432 \u043f\u043e\u044f\u0441\u043d\u0438\u0446\u0435\u00bb:\u00a0\u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f. \u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u044e\u0442, \u043d\u043e \u0432\u0441\u0435 \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443:\u00a0this.orderForm.get(&#8216;items&#8217;) as FormArray. \u0411\u0435\u0437\u00a0as\u00a0TypeScript \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0get()\u00a0\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0AbstractControl | null. \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432\u044b \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u0442\u0435 \u0447\u0442\u043e null \u0442\u0430\u043c \u043d\u0435\u0442, \u0447\u0442\u043e \u0442\u0430\u043c\u00a0FormArray. \u0418 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0442\u043e\u0440\u0430\u044f, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u00bb:\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435:this.orderForm.get(&#8216;client.email&#8217;)?.valueChanges.subscribe(email =&gt; {  \/\/ \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u043e \u0442\u043e \u0443\u043c\u043d\u043e\u0435});\u0412\u044b \u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u00a0unsubscribe? \u0412\u0441\u0435 \u0436\u0435 \u0437\u043d\u0430\u044e\u0442 \u043f\u0440\u043e \u043f\u0440\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438?  \u0414\u0430, \u0432\u0435\u0434\u044c? \u0418\u043d\u0430\u0447\u0435 \u044d\u0442\u043e \u0447\u0440\u0435\u0432\u0430\u0442\u043e \u0443\u0442\u0435\u0447\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0418 \u0442\u0430\u043a \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u0440\u0435\u0442\u044c\u044f, \u043e\u043d\u0430 \u0436\u0435 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442?\u00bb:\u00a0\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043e\u0442\u043d\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 Change Detection \u043d\u0430 \u0432\u0441\u0435\u0439 \u0444\u043e\u0440\u043c\u0435, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0447\u0438\u0445\u0430\u0442\u044c \u0438 \u0437\u0430\u0434\u0443\u043c\u0447\u0438\u0432\u043e \u0436\u0435\u0432\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0435\u0441\u0435\u043b\u043e, \u043a\u043e\u0433\u0434\u0430 \u0444\u043e\u0440\u043c\u0430 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f. \u041d\u0435\u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c, \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u044f\u0439\u0442\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440, \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0430 Reactive Forms: \u00ab\u041a\u0443\u0434\u0430 \u0442\u044b \u043d\u0430\u0436\u0430\u043b?\u00bb\u041d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0440\u0435\u0434\u043a\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431  \u0434\u0435\u043b\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u044b \u044d\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u044b \u0438\u0437 JSON-\u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0431\u044d\u043a\u0435 \u0438 \u0433\u0434\u0435 \u0430\u0432\u0442\u043e\u0440 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.\/\/ \u041a\u043e\u043d\u0444\u0438\u0433 \u043e\u0442 \u0431\u044d\u043a\u0435\u043d\u0434\u0430const formConfig = {  fields: [    { type: &#8216;text&#8217;, label: &#8216;\u0412\u0430\u0448\u0435 \u0438\u043c\u044f&#8217;, required: true },    { type: &#8217;email&#8217;, label: &#8216;Email&#8217;, validators: [&#8217;email&#8217;] },    { type: &#8216;select&#8217;, label: &#8216;\u0413\u043e\u0440\u043e\u0434&#8217;, options: [&#8216;\u041c\u043e\u0441\u043a\u0432\u0430&#8217;, &#8216;\u0421\u041f\u0431&#8217;, &#8216;\u041a\u0430\u0437\u0430\u043d\u044c&#8217;] },    \/\/ &#8230; \u0435\u0449\u0451 20 \u043f\u043e\u043b\u0435\u0439  ]};\/\/ \u0424\u0430\u0431\u0440\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u044bfunction createDynamicForm(config: any): FormGroup {  const group: any = {};    config.fields.forEach((field, index) =&gt; {    const validators = [];    if (field.required) validators.push(Validators.required);    if (field.validators?.includes(&#8217;email&#8217;)) validators.push(Validators.email);        group[`field_${index}`] = new FormControl(&#187;, validators);  });    return new FormGroup(group);}\u041f\u043e\u043a\u0430 \u0438\u043c\u0435\u0435\u0448\u044c \u0434\u0435\u043b\u043e \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u043b\u043e\u0441\u043a\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b (\u0430\u0434\u0440\u0435\u0441 \u0441 \u0443\u043b\u0438\u0446\u0435\u0439\/\u0434\u043e\u043c\u043e\u043c\/\u043a\u0432\u0430\u0440\u0442\u0438\u0440\u043e\u0439) \u0438\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a  (\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0441\u043f\u0438\u0441\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432), \u0442\u043e \u0434\u0435\u043d\u044c \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0442\u0435\u0440\u044f\u0442\u044c \u0441\u0432\u043e\u044e \u0442\u043e\u043c\u043d\u043e\u0441\u0442\u044c. \u0410 \u0435\u0441\u043b\u0438 \u0435\u0449\u0435 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043d\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u0430\u044f, \u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u0435\u0439&#8230; \u0422\u043e&#8230; \u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u0430\u0434.Signal Forms: \u00ab\u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043d\u0430\u0434\u0435\u0436\u0434\u0443\u00bb\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f: \u00ab\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u044b\u00bbSignal Forms \u044d\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u044b\u0439 API, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u0430\u044f \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430. \u0412\u044b \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438\u0437 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u0414\u0430\u043d\u043d\u044b\u0435 \u0436\u0438\u0432\u0443\u0442 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u0444\u043e\u0440\u043c\u0430 \u044d\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0441 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0435\u0439 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u044c.\u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0430\u043a \u00ab\u0432\u043e\u0437\u044c\u043c\u0438\u0442\u0435 \u043a\u0443\u0441\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u043c\u0443 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e\u00bb. \u0422\u0430\u043a \u043e\u043d\u043e \u0438 \u0435\u0441\u0442\u044c.\/\/ \u041c\u043e\u0434\u0435\u043b\u044c \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043bprivate orderModel = signal&lt;Order&gt;({  client: { name: &#187;, email: &#187; },  items: [{ product: &#187;, quantity: 1, price: 0 }],  total: 0});\/\/ \u0424\u043e\u0440\u043c\u0430 \u2014 \u043e\u0431\u0451\u0440\u0442\u043a\u0430 \u043d\u0430\u0434 \u043c\u043e\u0434\u0435\u043b\u044c\u044eprotected orderForm = form(this.orderModel, (path) =&gt; {  required(path.client.name);  required(path.client.email);  email(path.client.email);    applyEach(path.items, (item) =&gt; {    required(item.product);    min(item.quantity, 1);    min(item.price, 0.01);  });    \/\/ \u041a\u0430\u0441\u0442\u043e\u043c\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u0439 \u0441\u0443\u043c\u043c\u044b  validate(path, (ctx) =&gt; {    const total = ctx.value().items.reduce(      (sum, item) =&gt; sum + (item.quantity * item.price), 0    );    if (total === 0) {      return { kind: &#8217;emptyOrder&#8217;, message: &#8216;\u0417\u0430\u043a\u0430\u0437 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c&#8217; };    }    return undefined;  });});\/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0443\u0442\u0430\u0446\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430addItem() {  this.orderModel.update(order =&gt; ({    &#8230;order,    items: [&#8230;order.items, { product: &#187;, quantity: 1, price: 0 }]  }));}\u041d\u0435\u0442\u00a0FormArray, \u043d\u0435\u0442\u00a0push()\u00a0\u0438\u00a0removeAt(). \u0412\u0441\u0451, \u0447\u0442\u043e \u0432\u044b \u0443\u043c\u0435\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u0432 JavaScript, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0437\u0434\u0435\u0441\u044c. \u042d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a \u0441\u043d\u044f\u0442\u044c \u043e\u0431\u0443\u0432\u044c \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u043e\u0439 \u0445\u043e\u0434\u044c\u0431\u044b \u0438  \u0441\u0440\u0430\u0437\u0443 \u043b\u0435\u0433\u0447\u0435 \u0434\u044b\u0448\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f.\u0413\u0434\u0435 Signal Forms \u0445\u043e\u0440\u043e\u0448\u0438 (\u0441\u043f\u043e\u0439\u043b\u0435\u0440: \u043f\u043e\u0447\u0442\u0438 \u0432\u0435\u0437\u0434\u0435)\u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f!\u0412 Signal Forms \u043d\u0435\u0442\u00a0AbstractControl | null. \u0415\u0441\u0442\u044c \u0442\u0438\u043f\u00a0FieldTree&lt;T&gt;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0443\u0435\u0442  \u0432\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435\u00a0orderForm.items[0].product, TypeScript \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439. \u041d\u0438\u043a\u0430\u043a\u0438\u0445\u00a0as unknown as. \u0412\u0441\u0435, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043b\u0430\u0431\u0438\u0442\u044c\u0441\u044f.\u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445valueChanges.subscribe()\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0448\u043b\u0438 \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0438\u0445 computed\u00a0\u0438\u00a0effect. \u0421\u0438\u0433\u043d\u0430\u043b\u044b \u0441\u0430\u043c\u0438 \u0437\u043d\u0430\u044e\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f.\/\/ \u0420\u0430\u043d\u044c\u0448\u0435: \u0440\u0443\u0447\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0430subscription = orderForm.get(&#8216;client.email&#8217;)?.valueChanges.subscribe(&#8230;);ngOnDestroy() { this.subscription.unsubscribe(); }\/\/ \u0422\u0435\u043f\u0435\u0440\u044c: \u0432\u0441\u0451 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438readonly emailValidationMessage = computed(() =&gt; {  const emailField = this.orderForm.client.email;  if (emailField.touched() &amp;&amp; emailField.invalid()) {    return &#8216;Email looks suspicious&#8230;&#8217;;  }  return &#187;;});\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u0421\u0438\u0433\u043d\u0430\u043b\u044b \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u0447\u0435\u0447\u043d\u043e. \u0412 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u043e\u0442\u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e computed \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 99 \u043f\u043e\u043b\u0435\u0439 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0448\u0435\u043b\u043e\u0445\u043d\u0443\u0442\u0441\u044f. \u042f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u0442\u0435\u0441\u0442 \u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445  \u043d\u0430 100 \u0438 \u043f\u043e\u0442\u043e\u043c \u043d\u0430 200 \u043f\u043e\u043b\u0435\u0439 \u0438 \u0432 \u043c\u043e\u0451\u043c \u0442\u0435\u0441\u0442\u0435 Signal Forms \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0430 ~35% \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0432\u044b\u0434\u043e\u0445\u043d\u0443\u043b \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u00ab\u0441\u043f\u0430\u0441\u0438\u0431\u043e\u00bb.\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u0443\u0436\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0430 \u0447\u0442\u043e \u0436\u0435 \u043f\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0435? \u0412\u043e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u0445:  @Component({&#8230;})export class SurveyBuilderComponent {  \/\/ \u041c\u043e\u0434\u0435\u043b\u044c: \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432  private surveyModel = signal&lt;Survey&gt;({    title: &#187;,    questions: [      { id: crypto.randomUUID(), type: &#8216;text&#8217;, text: &#187;, required: false }    ]  });    protected surveyForm = form(this.surveyModel, (path) =&gt; {    required(path.title);        \/\/ \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435    applyEach(path.questions, (question) =&gt; {      required(question.text);            \/\/ \u0423\u0441\u043b\u043e\u0432\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f: \u0434\u043b\u044f select \u043d\u0443\u0436\u043d\u044b \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u0432\u0435\u0442\u043e\u0432      applyWhen(question.options, () =&gt; question.type() === &#8216;select&#8217;, (opts) =&gt; {        required(opts);        minLength(opts, 1);      });    });  });    addQuestion() {    this.surveyModel.update(survey =&gt; ({      &#8230;survey,      questions: [&#8230;survey.questions, {        id: crypto.randomUUID(),        type: &#8216;text&#8217;,        text: &#187;,        required: false      }]    }));  }    removeQuestion(index: number) {    this.surveyModel.update(survey =&gt; ({      &#8230;survey,      questions: survey.questions.filter((_, i) =&gt; i !== index)   &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-480978","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/480978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=480978"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/480978\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=480978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=480978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=480978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}