{"id":13497105,"url":"https://github.com/paramsinghvc/ng2-emojis","last_synced_at":"2025-10-27T01:30:30.767Z","repository":{"id":79949879,"uuid":"83226911","full_name":"paramsinghvc/ng2-emojis","owner":"paramsinghvc","description":"An Angular 2 plugin for emojis support for text inputs and textareas","archived":false,"fork":false,"pushed_at":"2017-02-26T17:55:36.000Z","size":49,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T01:24:35.396Z","etag":null,"topics":["angular","angular-2","angular2","emoji","emoticons","plugin","rollup","textarea","typescript","unicode"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paramsinghvc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-26T17:24:35.000Z","updated_at":"2020-09-15T08:57:22.000Z","dependencies_parsed_at":"2023-05-24T11:00:23.544Z","dependency_job_id":null,"html_url":"https://github.com/paramsinghvc/ng2-emojis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsinghvc%2Fng2-emojis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsinghvc%2Fng2-emojis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsinghvc%2Fng2-emojis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramsinghvc%2Fng2-emojis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paramsinghvc","download_url":"https://codeload.github.com/paramsinghvc/ng2-emojis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238418210,"owners_count":19468865,"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-2","angular2","emoji","emoticons","plugin","rollup","textarea","typescript","unicode"],"created_at":"2024-07-31T20:00:23.433Z","updated_at":"2025-10-27T01:30:30.433Z","avatar_url":"https://github.com/paramsinghvc.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# ng2-emojis\nAn Angular 2 plugin for emojis support for text inputs and textareas\n\n\u003cimg width=\"328\" alt=\"screen shot 2017-02-26 at 11 03 15 pm\" src=\"https://cloud.githubusercontent.com/assets/4329912/23342003/3e67abce-fc78-11e6-89c5-7f268f4544d4.png\"\u003e\n\n# Installation\n\n`npm install ng2-emojis --save`\n\n\nIn your app.module.ts, include `EmojisModule` into the imports array as\n\n```\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\nimport { EmojisModule } from 'ng2-emojis';\n\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent,\n  ],\n  imports: [\n    BrowserModule,\n    FormsModule,\n    HttpModule,\n    EmojisModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n```\n\nWrap your input or textarea element into an `emojify-holder` container element. And use the `emojiInput` attribute directive on the input element you want to \"emojify\" while passing the ngModel value into `emojiInputValue` property. That ngModel value is supposed to be changed by capturing the `emojiAdded` event on `emojify-holder` wrapper element.\n\n```\n\u003cemojify-holder (emojiAdded)=\"emojiAdded($event)\"\u003e\n    \u003cinput type=\"text\" emojiInput [emojiInputValue]=\"val\" [(ngModel)]=\"val\" /\u003e\n\u003c/emojify-holder\u003e\n```\n\nThe ts file goes like this \n\n\n```\nimport { Component } from '@angular/core';\n\n@Component({\n\tselector: 'app-root',\n\ttemplateUrl: './app.component.html',\n\tstyleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n\tval: string = '🐘';\n\ttitle = 'app works!';\n\temojiAdded(v) {\n\t\tthis.val = v;\n\t}\n}\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamsinghvc%2Fng2-emojis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparamsinghvc%2Fng2-emojis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamsinghvc%2Fng2-emojis/lists"}