Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/umayr/angular-cressida

Cressida wrapped with Angular.
https://github.com/umayr/angular-cressida

Last synced: about 15 hours ago
JSON representation

Cressida wrapped with Angular.

Awesome Lists containing this project

README

        

## Angular Cressida
> Angular wrapper over [cressida](https://github.com/umayr/cressida) message generator library.

Since cressida is written for nodejs, so its quite pain in the ass to use it in browser applications yet alone within angular. So, `angular-cressida` serves this purpose.

##### Installation

``` bash
# with npm
$ npm install --save angular-cressida

# with bower
$ bower install --save angular-cressida
```

##### Usage

Inject `cressida` module in your application and then in your controller:

``` javascript
angular
.module('my-app', ['cressida'])
.controller('ctrl', function($cressida){
$scope.message = $cressida.create(/* options */);
})
```
and then in your view:
``` html


{{ message('first name', '!empty') }}




```

For more information on cressida, read its [docs](https://github.com/umayr/cressida/blob/master/README.md).