Fixed to work with the ng-model controller so that binding strings works correctly.