We create a form using ng-form directive.When we fill the fields of form and click on the submit button fields with data will display and form will hide basis on the true,false value of isDetail variable.
ng-form
isDetail