From ffcb8dcb0838585596d4d2630012286e0a319084 Mon Sep 17 00:00:00 2001 From: Nkzlxs <35626992+Nkzlxs@users.noreply.github.com> Date: Mon, 3 Apr 2023 15:47:21 +0800 Subject: [PATCH] Fix markdown typo in README for no.256 and 258 This pull request fixes a minor typo in the README file. Specifically, for entry no.256 and 258 --- README.md | 78 +++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 0609040..2c9eda2 100644 --- a/README.md +++ b/README.md @@ -4148,24 +4148,24 @@ ``` Finally, the component with reactive form control appears as below, - ```js - import { Component } from '@angular/core'; - import { FormControl } from '@angular/forms'; - - @Component({ - selector: 'user-profile', - styleUrls: ['./user-profile.component.css'] - template: ` - - ` - }) - export class UserProfileComponent { - userName = new FormControl(''); - } - ``` + ```js + import { Component } from '@angular/core'; + import { FormControl } from '@angular/forms'; + + @Component({ + selector: 'user-profile', + styleUrls: ['./user-profile.component.css'], + template: ` + + ` + }) + export class UserProfileComponent { + userName = new FormControl(''); + } + ``` **[⬆ Back to Top](#table-of-contents)** @@ -4200,8 +4200,8 @@ 2. Bind the form from template to the component using ngModel syntax ```html + required + [(ngModel)]="model.name" name="name"> ``` 3. Attach NgForm directive to the