3
bootstrap documentationによると、 following bootply markupには緑色と赤色の要素が含まれている必要がありますさらにinvalid-feedback
メッセージが表示されることを期待しています。ブートストラップ4検証クラスが入力/フィードバック要素に表示されていません
angle4の反応性のあるフォームに正しいスタイルを組み込みたいと考えています。
<form class="was-validated">
<div class="form-group is-invalid">
<div class="input-group mb-3">
<span class="input-group-addon">@</span>
<input type="text" class="form-control is-invalid" placeholder="Email" formcontrolname="email">
</div>
<div class="invalid-feedback">Shucks, check the formatting of that and try again.</div>
</div>
<div class="form-group has-success">
<div class="input-group mb-3">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Email" formcontrolname="email">
</div>
<div class="invalid-feedback">Shucks, check the formatting of that and try again.</div>
</div>
</form>
私は.is-invalid
クラスを親を含むいくつかの要素に適用しました。私はこのためa bug loggedを発見した
編集
。 だからstackoverflowのの精神で、私は