Skip to main content

Posts

Showing posts with the label Angular 5 Forms and Validation

Angular 5/4 Forms and Validation Examples - Template Driven Form

In this Article, we will see “How Angular 5/4 forms are used or create?”   There are basically two types of Angular forms ü   Template driven form ü   Model driven forms And In this section, I will discuss about template driven form. The following Example - app.module.ts - import { BrowserModule } from '@angular/platform-browser' ; import { NgModule } from '@angular/core' ; import { RouterModule } from '@angular/router' ; import { HttpModule } from '@angular/http' ; import { FormsModule } from '@angular/forms' ; import { DateServiceService }  from '../app/date-service.service' ; import { AppComponent } from './app.component' ; import { UserComponent } from './user/user.component' ; import { BillComponent } from './bill/bill.component' ; import { BillService }  from '../app/bill.service' ; @ NgModule ({   declarations: [     AppCompon...