Skip to content

jordifebrer/ng-lorem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-lorem

Angular Lorem Ipsum Generator

Installation

Using Bower:

bower install ng-lorem

How to use it

You should already have script required for Angular.

<script type="text/javascript" src="angular.min.js"></script>

You should add after:

<script type="text/javascript" src="ng-lorem.min.js"></script>

Then, inject ngLorem in your application module:

angular.module('myApp', ['ngLorem']);

Finally, add the directive lorem-ipsum in your view/s:

<lorem-ipsum></lorem-ipsum>

Attributes

  • repeat: number of paragraphs
<lorem-ipsum repeat="2"></lorem-ipsum>
  • words: number of words
<lorem-ipsum words="5"></lorem-ipsum>
  • chars: number of chars
<lorem-ipsum chars="20"></lorem-ipsum>
  • reverse: reverse paragraph
<lorem-ipsum reverse="true"></lorem-ipsum>
  • Also you can add characters at the end, adding them between tags
<lorem-ipsum>...</lorem-ipsum>

About

AngularJS directive for Lorem-ipsum paragraphs

Resources

License

Stars

Watchers

Forks

Packages

No packages published