Am creating a angular directive for validation in that am using a template of input type text,am binding an key up event in which am validating the input field, am just using ng-show to print the error messages, its printing after two key up event occurs, but its showing the exact error in console, please help me to solve this issue, am pasting my Am creating a angular directive for validation