Angular Forms - aakash14goplani/FullStack GitHub Wiki

Introduction

  • Form is something you can simply submit to the server. With Angular, you're creating a single page application, so there is no submitting to the server, instead you will need to handle the form through Angular and if you then want to submit something to the server, you will need to reach out via Angular's HTTP service

  • Angular ships with some powerful tools that helps in handling/working with form

    • allow you to get the values the user entered
    • it will also allow you to check if a form is valid
    • it will allow you to conditionally change the way the form is displayed
    • put some red borders around invalid controls
  • Angular offers two approaches to deal with form -