Required attribute for input field

Hi, I needed to have a required attribute on the directive's input field. So I added an attribute and I passed the value down to a new ng-required attribute on the input field.

Seems to work correctly with and without the attribute, so it's just another option. Hope it works well for you.