Demo: http://ameyanaik11.github.io/Angular-Abbreviation/
A directive to aid in handling abbreviations in a web application.
To include the abbreviation directive in your own project, add the abbreviation.js
or abbreviation.min.js
file and include the module as a dependency to your angular application. We do support npm and bower if you are familiar with those distribution systems. Please review the src/index.html and src/app.js files for a working version of the directive if you are new to angular modules.
// Add the Angular-Abbreviation module as a dependency to your application module:
var app = angular.module('yourApp', ['ng.abbreviation'])
The following attributes explored in the basic example are required directive inputs:
short
The short text displayed in the browserlong
The description displayed when user hovers onshort
Basic Example
<div abbreviation
long="'World Wide Web'"
short="'WWW'">
</div>
You can optionally pass Angular variables