Angular Cressida
Angular wrapper over 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
$ npm install --save angular-cressida
$ bower install --save angular-cressida
Usage
Inject cressida
module in your application and then in your controller:
angular
.module('my-app', ['cressida'])
.controller('ctrl', function($cressida){
$scope.message = $cressida.create();
})
and then in your view:
<p>
{{ message('first name', '!empty') }}
</p>
For more information on cressida, read its docs.