Skip to content

AngularJS directive for handling posessive nouns (Bill's vs Jess')

License

Notifications You must be signed in to change notification settings

codehangar/ng-proper-possessive

Repository files navigation

ng-proper-possessive — Some names end in 's'. Others don't. Do the right thing.

Build Status

A simple AngularJS directive to properly handle possessive nouns.

Getting Started

Manual Download

Download the from here

Bower

bower install ng-proper-possessive

Usage

  1. Add ngProperPossessive.min.js to your main file (index.html)
<script type="text/javascript" src="bower_components/ng-proper-possessive/dist/ngProperPossessive.min.js"></script>

(Bower should inject the script into your project)

  1. Set ngProperPossessive as a dependency in your module
var myapp = angular.module('myapp', ['ngProperPossessive'])
  1. Add proper-possessive directive to the desired element, and set the 'name' attribute to the value you need to manipulate. Example:
<span proper-possessive name="{{user.name}}"></span>

Credits

This project was initially forked from the application template seed here https://github.com/refactorthis/angular-component-seed.git

About

AngularJS directive for handling posessive nouns (Bill's vs Jess')

Resources

License

Stars

Watchers

Forks

Packages

No packages published