angular-cressida

0.2.0 • Public • Published

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
 # 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:

 angular
    .module('my-app', ['cressida'])
    .controller('ctrl', function($cressida){
        $scope.message = $cressida.create(/* options */);
    })

and then in your view:

  <p>
    {{ message('first name', '!empty') }} 
  </p>
  
  <!-- first name should not be empty. -->

For more information on cressida, read its docs.

Package Sidebar

Install

npm i angular-cressida

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • umayr