AngularJS Forms
Using Forms in AngularJS Forms are used to accept data from the user. In angular, you can create 2 types of forms 1. Template driven forms. 2. Reactive forms. In this blog, you are going to learn How to create AngularJS Template driven forms. So First of all 1. Create an App C:\> ng new forms-app C:\> cd forms-app 2. Create a component test C:\> forms-app> ng generate component test 3. Configure forms in app.module.ts file. import { Component, NgModule, OnInit } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import {FormsModule, NgForm} from '@angular/forms' ; import { AppRoutingModule } from './app-routing.module' ; import { AppComponent } from './app.component' ; import { TestComponent } from './test/test.component' ; @ NgModule({ declarations: [ AppComponent, TestComponent ], imports: [ BrowserModule,