Problem Statement:
Step 1: Open the plunkr URL: http://plnkr.co/edit/ngdoc:example-example100@snapshot?p=preview
Step 2: Give input to "Name" filed. The "Reset" button is enable now. Its OK.
Step 3: Refresh the page.
Step 4: Now leave "Name" field empty and type some invalid email(like: test) to "Email" field. Here is the problem I found, The Reset button is not enabled.
Step 5: Now enter some text in "Name" filed. Now the Reset button is enabled.
Step 6: Click on Reset button.
Step 7: Here is another problem. Its clearing the input text for "Name" but not for "Email".
Hi Sourav,
You did not provide defaults in your code, this confuses me, and apparently also some parts in your code ;)
if you do this in your controller:
$scope.master = {
name:'',
email:''
};
Your sample will work as expected.
Regards
Sander