Skip to content

Instantly share code, notes, and snippets.

@AlexDoanTB
Created February 13, 2020 12:35
Show Gist options
  • Select an option

  • Save AlexDoanTB/9e85c3b21d9060129bb7936e5f0be2ab to your computer and use it in GitHub Desktop.

Select an option

Save AlexDoanTB/9e85c3b21d9060129bb7936e5f0be2ab to your computer and use it in GitHub Desktop.
This is the HTML code for adding phone number input field for Add entity button
<div layout="row">
<md-input-container flex class="md-block">
<label>Phone</label>
<input name="phoneNumber" pattern="^[0-9-+\s()]*$" ng-model="vm.attributes.phone">
<div ng-messages="addEntityForm.phoneNumber.$error">
<div ng-message="pattern">Invalid format</div>
</div>
</md-input-container>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment