maxlength:data.required"/>

            <label for="">maxlength:3</label>
            <input type="text" ng-model="data.maxlength2" name="num" validate="maxlength:3"/>

            <label for="">minlength (ng-model="data.maxlength1", validate="minlength:data.required")</label>
            <input type="text" ng-model="data.minlength1" name="minlength1" validate="minlength:data.required"/>

            <label for="">minlength:3</label>
            <input type="text" ng-model="data.minlength2" name="minlength2