Skip to content
NADEEM AKHTAR (FULL STACK DEVELOPER) edited this page Sep 30, 2016 · 10 revisions

There are two ways to build forms in Angular 2, namely template-driven and model-driven.

Model-Driven or Template-Driven?

It depends. If you are not doing unit testing (of course you should!), or you have simple form, go ahead with template-driven forms.

Template-Driven Approach

Introduction

We will build a Login form to capture user login data based on ## Login Model class that exist in path "core/models/login" & account.service Service class that exist in "core/services/account.service".

For more information visit https://angular.io/docs/ts/latest/guide/forms.html

Clone this wiki locally