Skip to content

Instantly share code, notes, and snippets.

View principalweb's full-sized avatar
🏠
Working from home

Principal Angular, Ionic, React, React Native Engineer principalweb

🏠
Working from home
View GitHub Profile
<md-input-container class="admin-form">
<input md-input placeholder="Block Title" nfNoSpaces [(ngModel)]="block.title" id="block-{{ block.id }}-input-name" name="title"
#title="ngModel">
<md-hint [ngStyle]="{'color': 'red'}" align="start" *ngIf="!title.valid && !title.pristine">Title is required.</md-hint>
</md-input-container>
Be sure to include ref to directive in module declarations array.