https://github.com/codehangar/ng-proper-possessive
AngularJS directive for handling posessive nouns (Bill's vs Jess')
https://github.com/codehangar/ng-proper-possessive
Last synced: 4 months ago
JSON representation
AngularJS directive for handling posessive nouns (Bill's vs Jess')
- Host: GitHub
- URL: https://github.com/codehangar/ng-proper-possessive
- Owner: codehangar
- License: mit
- Created: 2015-09-28T23:00:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-29T14:30:03.000Z (over 10 years ago)
- Last Synced: 2026-01-23T16:13:31.962Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ng-proper-possessive — Some names end in 's'. Others don't. Do the right thing.
[](https://travis-ci.org/codehangar/ng-proper-possessive)
A simple AngularJS directive to properly handle possessive nouns.
## Getting Started
#### Manual Download
Download the from [here](https://github.com/codehangar/ng-proper-possessive/releases)
#### Bower
```
bower install ng-proper-possessive
```
## Usage
1. Add ngProperPossessive.min.js to your main file (index.html)
```html
```
(Bower should inject the script into your project)
2. Set `ngProperPossessive` as a dependency in your module
```javascript
var myapp = angular.module('myapp', ['ngProperPossessive'])
```
3. Add proper-possessive directive to the desired element, and set the 'name' attribute to the value you need to manipulate.
Example:
```html
```
## Credits
This project was initially forked from the application template seed here
[https://github.com/refactorthis/angular-component-seed.git](https://github.com/refactorthis/angular-component-seed.git)