An open API service indexing awesome lists of open source software.

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')

Awesome Lists containing this project

README

          

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

[![Build Status](https://travis-ci.org/codehangar/ng-proper-possessive.svg?branch=master)](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)