Skip to content

gjdipietro/angular-possessive-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-possessive-filter

possessive filter for angular.js Adds an apostrophe+s or apostrophe when needed to proper nouns. produces something like: Greg's or Charles'

Usage

Include the file:

<script src="/.../possessive.js"></script>

Import it to the angular applicaiton:

angular.module('myApp', ['filter.possessive']);

Use it in the view:

<span>{{ Greg | possessive}} thing </span>
<span>{{ Charles | possessive}} thing </span>

About

A possessive filter for Angularjs

Resources

License

Stars

Watchers

Forks

Packages

No packages published