O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Templete driven forms

AngularJS handled forms using the ng-model directive, and it leveraged the power of two-way binding that made the lives of developers easier. Angular enables developers to build template-driven forms using ngModel, which is similar to ng-model in AngularJS.

The following is the implementation of template-driven forms:

  1. Let's create an app named First Template Form in Visual Studio Code (VS Code).
  2. Add the required packages and dependency details in package.json, and install them using the npm install command.

 

      {      "name":"first-template-form",      "version":"1.0.0",      "private":true,      "description":"First template form",      "scripts":{      "test:once":"karma start karma.conf.js --single-       run",      "build":"tsc -p src/", "serve":"lite-server ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required