{"id":19312021,"url":"https://github.com/weblineindia/angular-email-input-component","last_synced_at":"2025-07-08T15:05:53.357Z","repository":{"id":57179380,"uuid":"281091868","full_name":"weblineindia/Angular-Email-Input-Component","owner":"weblineindia","description":"AngularJS based Email component, provides option to add single / multiple email input field with validation. The email value is automatically validated on blur event. You can change validation message using props. You can also disable email field using disable props.","archived":false,"fork":false,"pushed_at":"2024-04-19T09:05:29.000Z","size":200,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T13:35:38.906Z","etag":null,"topics":["angular","angular-components","angular-email","angular-libraries","angular-mail-component","angularjs","angularjs-components","angularjs-email-component","angularjs-library","email-input","email-validation","email-validation-input","javascript-email-validation","mail-validation","multi-email","reusable-components"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/software-development-resources.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-20T10:57:48.000Z","updated_at":"2024-04-19T09:05:33.000Z","dependencies_parsed_at":"2024-11-10T00:32:26.181Z","dependency_job_id":"39c7ee86-ee4f-43e2-b8c3-56a08e405c2a","html_url":"https://github.com/weblineindia/Angular-Email-Input-Component","commit_stats":null,"previous_names":["weblineindia/angularjs-email"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weblineindia/Angular-Email-Input-Component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Email-Input-Component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Email-Input-Component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Email-Input-Component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Email-Input-Component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Angular-Email-Input-Component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Email-Input-Component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264292934,"owners_count":23586061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-components","angular-email","angular-libraries","angular-mail-component","angularjs","angularjs-components","angularjs-email-component","angularjs-library","email-input","email-validation","email-validation-input","javascript-email-validation","mail-validation","multi-email","reusable-components"],"created_at":"2024-11-10T00:32:14.211Z","updated_at":"2025-07-08T15:05:53.336Z","avatar_url":"https://github.com/weblineindia.png","language":"JavaScript","readme":"# Angular - Email Component\r\n\r\nA Angular based Email component used to specify an input field where the user can enter data.\r\n\r\n## Table of contents\r\n\r\n- [Browser Support](#browser-support)\r\n- [Demo](#demo)\r\n- [Getting started](#getting-started)\r\n- [Usage](#usage)\r\n- [Available Props](#available-props)\r\n- [Methods](#methods)\r\n- [Want to Contribute?](#want-to-contribute)\r\n- [Collection of Components](#collection-of-components)\r\n- [Changelog](#changelog)\r\n- [License](#license)\r\n- [Keywords](#Keywords)\r\n\r\n## Browser Support\r\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\r\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\r\n| 83.0 ✔                                                                                   | 77.0 ✔                                                                                      | 13.1.1 ✔                                                                                 | 83.0 ✔                                                                             | 11.9 ✔                                                                                                                       |\r\n\r\n\r\n## Demo\r\n\r\n[![](textNg.gif)](https://github.com/weblineindia/AngularJS-Email/textNg.gif)\r\n\r\n## Getting started\r\n\r\nInstall the npm package:\r\n\r\n```bash\r\nnpm install angular-weblineindia-email\r\n#OR\r\nyarn add angular-weblineindia-email\r\n```\r\n\r\n## Usage\r\n\r\nUse the `\u003cangular-weblineindia-email\u003e` component:\r\n\r\nAdd in app.module.ts file\r\n\r\n```typescript\r\nimport { NgModule } from \"@angular/core\";\r\nimport { AngularWeblineindiaEmailInputModule } from \"angular-weblineindia-email\";\r\n\r\n@NgModule({\r\n  imports: [AngularWeblineindiaEmailInputModule],\r\n})\r\nexport class AppModule {}\r\n```\r\n\r\nAdd in app.component.ts file\r\n\r\n```typescript\r\nexport class AppComponent {\r\n  isInvalidEmail: boolean = false;\r\n  invalidMessage: string = \"\";\r\n\r\n  onFocus(event: any) {}\r\n\r\n  onBlur(event: any) {}\r\n\r\n  onKeyPressHandler(event: any) {}\r\n\r\n  onKeyDownHandler(event: any): void {}\r\n\r\n  onKeyUpHandler(event: any): void {\r\n    const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n    const isValid = emailRegex.test(event?.target?.value);\r\n\r\n    if (!isValid) {\r\n      this.isInvalidEmail = true;\r\n      this.invalidMessage = \"Invalid email format\";\r\n    } else {\r\n      this.isInvalidEmail = false;\r\n      this.invalidMessage = \"\";\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAdd in app.component.html file\r\n\r\n```html\r\n\u003cangular-weblineindia-email [placeholder]=\"'Enter your email'\" [disabled]=\"false\" [value]=\"'yourname@domain.com'\" [required]=\"true\" [isInvalidEmail]=\"isInvalidEmail\" [invalidMessage]=\"invalidMessage\" [class]=\"'emailInput'\" [errorClass]=\"'errorMessage'\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (KeyPress)=\"onKeyPressHandler($event)\" (KeyDown)=\"onKeyDownHandler($event)\" (KeyUp)=\"onKeyUpHandler($event)\"\u003e \u003c/angular-weblineindia-email\u003e\r\n```\r\n\r\nAdd in app.component.css file\r\n\r\n```typescript\r\n::ng-deep .emailInput {\r\n  /* Add your custom styles here */\r\n}\r\n\r\n::ng-deep .errorMessage {\r\n  /* Add your custom styles here */\r\n}\r\n\r\n```\r\n\r\n## Available Props\r\n\r\n| Prop           | Type    | Default | Description                                                   |\r\n| -------------- | ------- | ------- | ------------------------------------------------------------- |\r\n| placeholder    | String  |         | The placeholder text displayed in the input field.            |\r\n| disabled       | Boolean | false   | If true, disables the input field.                            |\r\n| required       | Boolean | false   | If true, makes the input field mandatory.                     |\r\n| isInvalidEmail | Boolean | false   | If true, adds a styling to indicate an invalid email format.  |\r\n| invalidMessage | String  |         | The error message displayed when the email format is invalid. |\r\n| class          | String  |         | Additional CSS class(es) to apply to the input field.         |\r\n| errorClass     | String  |         | CSS class applied when the email format is invalid.           |\r\n\r\n## Methods\r\n\r\n| Name     | Description                                                      |\r\n| -------- | ---------------------------------------------------------------- |\r\n| focus    | Gets triggered when the autocomplete input field receives focus. |\r\n| blur     | Gets triggered when the autocomplete input field loses focus.    |\r\n| KeyPress | Gets triggered when a key gets pressed.                          |\r\n| KeyDown  | Gets triggered when a key gets down.                             |\r\n| KeyUp    | Gets triggered when a key gets up.                               |\r\n\r\n## Want to Contribute?\r\n\r\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\r\n- [Fork it](http://help.github.com/forking/).\r\n- Create new branch to contribute your changes.\r\n- Commit all your changes to your branch.\r\n- Submit a [pull request](http://help.github.com/pull-requests/).\r\n\r\n---\r\n\r\n## Collection of Components\r\n\r\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/software-development-resources.html)\r\n\r\n---\r\n\r\n## Changelog\r\n\r\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\r\n\r\n## License\r\n\r\n[MIT](LICENSE)\r\n\r\n[mit]: https://github.com/weblineindia/AngularJS-Text-Box/blob/master/LICENSE\r\n\r\n## Keywords\r\n\r\nangular-weblineindia-email, email, input, angular, angular-component, email-input-component\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-email-input-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fangular-email-input-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-email-input-component/lists"}