0
こんにちは、私は私の入力 コード内の数字は、ここAngualr2検証番号の正規表現
がどのように有効なkonowいけないangular2 Validator Error: Template parse errors:(…)
イム追加この
<form name="authForm" novalidate="" ng-submit="login()" class="md-padding" >
<div layout="column" class="layout-column">
<div class="md-form" style="margin-bottom: 64px; margin-top: 20px" [class.invalid]="user.number && user.number.length < 15">
<input class="mdl-textfield__input" [(ngModel)]="user.number" name="number" type="tel" (focus)="focus()" (blur)="focusOut()" [textMask]="{mask: mask}" id="emailInput" required>
<label class="mdl-textfield__label" [class.active]="user.number != null" for="emailInput">Numer telefonu</label>
</div>
<div class="md-form" style="margin-bottom: 44px" [class.invalid]="user.password <= null">
<input class="mdl-textfield__input" [(ngModel)]="user.password" name="password" (focus)="focusPass()" (blur)="focusOutPass()" type="password" id="passInput" required>
<label class="mdl-textfield__label" [class.active]="user.password != null" for="emailInput">Hasło</label>
</div>
<a class="router" routerLink="/panel"><button (click)="logIn($event)" class="md-raised md-accent md-button md-ink-ripple " [class.active]="user.password != null && user.number != null" style="width: 320px" type="submit" aria-label="Zaloguj się"><span>Zaloguj się</span></button></a>
</div>
</form>
イム機能を行う必要がありますか?私は、入力イムで、正規表現に問題がある参照「_」文字とuser.number.lengthは符号