Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- import emojione from 'emojione';
- const {
- computed,
- String: {
- htmlSafe
- }
- } = Ember;
- export default Ember.Component.extend({
- input: undefined,
- output: computed('input', function () {
- const input = this.get('input')
- const converted = emojione.toImage(input)
- return htmlSafe(converted)
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement