Created
October 1, 2015 04:21
-
-
Save tkc/151e9f8ea422e7ea9404 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form name="form"> | |
<input id="" | |
type="text" | |
class="form-control w400_h40_auto margin_b_20_1" | |
placeholder="名称" | |
name="boardName" | |
ng-model="boardName" | |
ng-minlength="5" | |
ng-maxlength="20" | |
required | |
ng-pattern_none="/^[a-zA-Z0-9]+$/" | |
/> | |
<div ng-messages="form.boardName.$error" ng-if="form.boardName.$touched" class="center_test"> | |
<div ng-message="required">入力は必須です。</div> | |
<div ng-message="pattern">英数字のみを入力してください。</div> | |
<div ng-message="minlength">5文字以上で入力してください。</div> | |
<div ng-message="maxlength">20文字以上で入力してください。</div> | |
</div> | |
<button | |
ng-show="!form.$invalid" | |
id="b_set_boad_name_item" | |
class="btn_w_400_h_40_m_auto" | |
ng-click="serBoardName()" | |
>保存 | |
</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment