I was trying to count the length of a string($scope.count = $scope.str.lenght). But, when there is a space at the end of the string its not being counted until there is a character after the space.
Example:
"Hello " = 5,
"Hello u" = 7
Any idea why is it designed in this way?
How can I count the space at the end of the string?
"Hello ".lengthget true output! insert some code please.ng-trim="false"