I am using <md-divider>
, for example <hr>
. I thought this was ok using <hr>
. However, <md-divider>
sometimes not displayed.
I used <md-divider>
in <md-card>
, but <md-divider>
not displayed. Should I use <md-divider>
in <md-list>
?
If anyone has the same problem with me, please share your experience to solve this problem.
Here is my code.
<div class="card-height" fxLayoutAlign="center center"> <md-card fxFlex="30" fxLayout="column"> <md-card-title>Sign in</md-card-title> <form [formGroup]="myForm" (ngSubmit)="onSignin()"> <md-card-content> <div class="form-group"> <md-input-container> <input mdInput placeholder="E-mail" formControlName="email"> <md-hint> <span class="invalid" [hidden]="myForm.controls['email'].pristine || !myForm.controls['email'].errors?.required">Required</span> <span class="invalid" [hidden]="myForm.controls['email'].errors?.required || !myForm.controls['email'].errors?.email">This doesn't appear to be a valid email address.</span> <span class="invalid" [hidden]="!myForm.controls['email'].errors?.pattern">Email address is not correct.</span> </md-hint> </md-input-container> </div> <div class="form-group"> <md-input-container> <input mdInput placeholder="Password" formControlName="password" type="password" fxLayoutAlign="center"> <md-hint> <span class="invalid" [hidden]="myForm.controls['password'].pristine || !myForm.controls['password'].errors?.required">Required</span> </md-hint> </md-input-container> </div> </md-card-content> <md-card-actions> <a [routerLink]="['/forget-password']">Do you forget your password?</a> <button md-button color="accent" type="submit">Login</button> </md-card-actions> </form> </md-card> </div>
source share