This is the pseudo code
Web App: nametester.html Uses: AngularJS Model: - strName (which stores a String value)
--- Steps: 1: Assign strName using ng-model with the prompt: 'Please enter your name:'
2: ng-show (if)"strName == '—add your name here—'"
3: Output 'Awesome name!'
4: ng-hide (else)"strName == '—add your name here—'"
5: Output strName, ' is a not my name'
Use the lowercase filter to convert the value of a variable into lowercase before you compare.
And my code
Name Tester App
<p><label for="name">Please Enter Your Name:</label>
<input type="text" id="name" data-ng-model="strName"/></p>
<span>{{strVar | lowercase}}</span>
<p>
<span data-ng-show ="strName =='Ben'"> Awesome Name</span>
<span data-ng-hide ="strName =='Someone'">{{strName}}, is not your name</span>
</p>
But it doesn't work. I am seeing ", is not your name" even when the text input is blank and how to filter input to lowercase values before its compared.
Show works. When I put my name I do get output in the format
Awesome Name! Ben, is not your name
data-ng-showand=, anddata-ng-hideand=.