1.0.0 • Published 9 years ago
aurelia-emoji v1.0.0
aurelia-emoji
A value converter plugin for converting emoji strings to actual emoji in Aurelia applications.
To Install
Webpack/Aurelia CLI
npm install aurelia-emoji --saveCLI User?
The Aurelia CLI requires some additional configuration to use this plugin. Open up your aurelia.json file located in the aurelia_project directory and at the bottom of the dependencies section add in the following:
{
"name": "aurelia-emoji",
"path": "../node_modules/aurelia-emoji/dist/amd",
"main": "index"
}Jspm
jspm install aurelia-emojiConfiguring For Use
Inside of your main.js/main.ts file simply load the plugin inside of
the configure method using .plugin()
export function configure(aurelia) {
aurelia.use.plugin('aurelia-emoji');
}Using It
A value converter has been registered for global use in your application. There is not really anything to do, as it is a non-configurable value converter plugin.
<template>
<p>${'I :heart: :chicken:!' | emoji}</p>
</template>1.0.0
9 years ago