JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.angularjs.org/1.1.5/angular.js"></script>
<form ng-app="app" ng-controller="Ctrl" action = "" name="form" novalidate>
<select name="style"
id="style"
ng-model="request.style"
ng-options="o for o in opt"
required error-render></select>
</form>
<script>
app=angular.module("app",[]);
app.directive('errorRender',function($rootScope){
return{
restrict: 'A',
//scope: {},
require:['ngModel'],
compile: function compile(tElement, tAttrs) {
return function postLink(scope, element, attrs, ctrl) {
}
}
}
}).controller("Ctrl",function ($scope) {
$scope.opt=[1,2,3,4,5,6,7,8,9];
})
</script>
CSS
input,button{
display:block;
}