New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular.mailcheck

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular.mailcheck

Reduce user-misspelled email addresses in your angular forms

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-58.33%
Maintainers
1
Weekly downloads
 
Created
Source

angular.mailcheck

npm version bower version build status

Reduce user-misspelled email addresses in your angular forms.

Requirements

Load into your app

You can get it from Bower

bower install angular.mailcheck

or npm

npm install angular.mailcheck

Load the script files in your application:

<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/mailcheck/src/mailcheck.js"></script>
<script type="text/javascript" src="bower_components/angular.mailcheck/angular-mailcheck.js"></script>

Add the specific module to your dependencies:

angular.module('myApp', ['tf.mailcheck', ...])

Usage examples

Live demo

<div>
  <input
    type="email"
    ng-model="vm.email"
    tf-mailcheck="vm.suggestion"
  />
  <div ng-if="vm.suggestion">
    Did you mean 
    <a href ng-click="vm.email = vm.suggestion.full">
      {{vm.suggestion.full}}</a>?
  </div>
</div>


<!-- Pass options with tf-mailcheck-options -->
<!-- Options: https://github.com/mailcheck/mailcheck#usage-without-jquery -->
<div>
  <input
    type="email"
    ng-model="vm.email2"
    tf-mailcheck="vm.suggestion2"
    tf-mailcheck-options="{secondLevelDomains: ['foobar']}"
  />
  <div ng-if="vm.suggestion2">
    Did you mean 
    <a href ng-click="vm.email2 = vm.suggestion2.full">
      {{vm.suggestion2.full}}</a>?
  </div>
</div>

Keywords

FAQs

Package last updated on 21 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc