I\'ve found some strange behavior: angular trims model values by default. And quick googling doesn\'t help me to solve this problem. I\'ve found ng-no-trim dire
ng-no-trim
You can enable/disable trim option by using ng-trim=true/false. Ref https://docs.angularjs.org/api/ng/input/input%5Btext%5D