aml-angular-baconipsum

An AngularJS Directive for the baconipsum.com API.
Homepage:
0 people use it

aml-angular-baconipsum

An AngularJS Directive for the Bacon Ipsum API.

See http://baconipsum.com/ for more details.

Example Usage:

    <baconipsum></baconipsum>

    <baconipsum type="all-meat" sentences="4"></baconipsum>

    <baconipsum paras="{{paragraphs}}"></baconipsum>

    <baconipsum paras="2" start-with-lorem="1"></baconipsum>

Attributes:

  • type: all-meat for meat only or meat-and-filler for meat mixed with miscellaneous ‘lorem ipsum’ filler, defaults to all-meat.
  • paras: optional number of paragraphs, defaults to 5.
  • sentences: number of sentences (this overrides paragraphs)
  • start-with-lorem: optional pass 1 to start the first paragraph with ‘Bacon ipsum dolor sit amet’.

Notes:

  • Javascript Minification / Compression friendly.
  • Module Name prefix can be customised.
  • Local Storage is utilized to cache identical requests to the API.
comments powered by Disqus
This page was last updated over 3 years ago.