Using ng-model directive you bind value of input controls to the application data. [html] My Name: [/html] Try Validating…