Angular v2+ form validation


  • 09 October 2018

Project Description

An Angular v2+ simple application to show form validation. This is a fork from a schotch.io project. I have thought I could add some styles and Karma unit tests to see how you can test forms with Angular. The result is pretty interesting for frontend beginners and testers.

There are 4 different forms:

  1. Template Driven Form
  2. Model Driven (Reactive) Form
  3. Model Driven (Reactive) Form with Validation
  4. Login Form that integrates the Auth0 API

To get the Login Form to function properly, you will need to have an Auth0 account, you can sign up for a free Auth0 account here. Once you have an account go into the app.login.ts file and make the following edits:

  1. Replace YOUR-AUTH0-CLIENT-ID with your credentials
  2. Replace YOUR-AUTH0-DOMAIN with your Auth0 domain
  3. Replace YOUR-DATABASE-CONNECTION with whatever you name your username and database connection in the Auth0 Management Dashboard
Github  Live Preview
  • Skills

    • Html
    • Javascript
    • CSS
    • Angular
    • Karma
    • Protractor
    • NodeJS
    • NgCli

Share this project