wrapping inputs in directives in angular
问题 I had the idea to wrap inputs into custom directives to guarantee a consistent look and behavior through out my site. I also want to wrap bootstrap ui's datepicker and dropdown. Also, the directive should handle validation and display tooltips. The HTML should look something like this: <my-input required max-length='5' model='text' placeholder='text' name='text'/> or <my-datepicker required model='start' placeholder='start' name='start'/> in the directives i want to create a dom structure