/angular-abbreviation

[Archived] A directive to aid in handling abbreviations in a web application.

Primary LanguageJavaScriptMIT LicenseMIT

Angular Abbreviation

npm version bower version Build Status CDN

Demo: http://ameyanaik11.github.io/Angular-Abbreviation/

A directive to aid in handling abbreviations in a web application.

Blah Blah Blah.. How to Use!

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:

  1. short The short text displayed in the browser
  2. long The description displayed when user hovers on short

Basic Example

alt text

<div abbreviation
  long="'World Wide Web'"
  short="'WWW'">
</div> 

You can optionally pass Angular variables