Skip to content

An angularjs filter for converting text into emoticons.

License

Notifications You must be signed in to change notification settings

jagannath93/ngEmoticons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngEmoticons

An angularjs filter for converting text into emoticons.

Supports chat codes like :) :P :( 3:) :D :/ ;) (y) (^) <3 </3 etc.

Screenshot

screenshot

Dependencies

  • AngularJs 1.2 or above
  • ng-Sanitize

Getting Started

Install through bower

bower install ng-emoticons --save

Install through npm

npm install --save ng-emoticons

load css files

 <link rel="stylesheet" href="path/to/ng-emoticons.min.css"/>

Then load the following files

<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="path/to/ng-emoticons.js"></script>

Load 'Emoticons' as a dependency

angular.module('ngEmoticonApp', ['ngSanitize','ngEmoticons'])

HTML:

<div ng-bind-html="text | linky:'_blank' | emoticons"></div>

Version 1.0.0

  • Better directory structure.
  • Updated dependencies.
  • Added smileys' variation.

Version 0.2.0

Using font instead of images.

Contributing

  • If you are Interested in contributing to this project, you are most welcome.
  • If it is a bug-fix/improvement, first report it at issues
  • Discuss with us in detail about your issue/improvement
  • Get the issue allotted.
  • If you are contributing a bug-fix or a very minor addition, feel free to do a pull request on the master # branch.
  • If you are unsure about the bug/improvement, create an issue to discuss.
  • Report bugs @ issues

License

The MIT License (MIT)

Copyright (c) 2014 Ritesh Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

An angularjs filter for converting text into emoticons.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.3%
  • HTML 20.3%
  • CSS 12.4%