2.0.1 • Published 9 years ago
angular-hipsum v2.0.1
Hipster Ipsum Angular Directive
Install it
Install directive using bower:
bower install angular-hipsumOr npm:
npm install angular-hipsumLoad script in html after angular.js file
<script src="/vendor/angular-hipsum.js"></script>Then, inject ngHipsum in your application module:
angular.module('myApp', ['ngHipsum']);Use it
<p hipsum paragraphs="2"></p>
<h1 hipsum words="6"></h1>
<h2 hipsum length="20"></h2>Available attributes
paragraphs: number of paragraphs (up to 99 paragraphs)
<p hipsum paragraphs="2"></p>words: number of words (as long as there are words available 💩)
<p hipsum words="2"></p>length: length of string
<p hipsum paragraphs="2"></p>TODO (wishlist)
Addwordsattribute to choose # of words- Add
kitchensinkelement
Credits
Special thanks to Ian van Ness for providing the source of Hipster Ipsum on http://hipsterjesus.com/