Reduce unnecessary calls to text()

Get text value only when ng-Required attribute is set.