• Stars
    star
    202
  • Rank 190,026 (Top 4 %)
  • Language
    JavaScript
  • License
    GNU Lesser Genera...
  • Created over 11 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A set of placeholder directives & services for use during development of AngularJS apps.

Placeholders for AngularJS!

See the demo!


Placeholder Text

angular-placeholders includes a phTxt directive for the insertion of "Lorem ipsum"-style text. It can work as either an element or an attribute and accepts two optional attributes: num-sentences and num-paragraphs. If num-sentences is provided, the body of the element will be replaced with the specified number of sentences. num-paragraphs will replace the body of the element with the specified number of <p> tags containing random sentences.

The default behavior is a random number of paragraphs.

Placeholder Images

The phImg directive creates client-side placeholder images in any size. The directive creates a PNG image using the HTML5 canvas library and uses the generated client-side URL as the src on an img element.

The directive takes a single eponymous attribute that specifies the dimensions of the image to create; the expected format is "100x100".

Building

The build toolchain for angular-placeholders was stolen borrowed from the ui-bootstrap project.

The build script is written using Grunt, a command-line build tool for JavaScript projects. To build, run the following command in the terminal:

$ grunt

That was easy! It will run tests, generate the documentation/demo site, compile the modules, and minify the source. The resulting files will be in the dist/ directory.

More Repositories

1

ng-curtain

AngularJS directives that create multiple fixed panels that unroll with an amusing effect. Port of the now defunct victa/curtain.js.
JavaScript
85
star
2

dot-files

My computer configurations
Haskell
24
star
3

vim

My vim configuration
Vim Script
14
star
4

redux-live-class-recipe-app

An MVP of a React+Redux-based Recipe management app for a live class. https://www.codementor.io/classes/learn-reactjs-and-redux-live
JavaScript
7
star
5

js-live-class-code

Reference code from http://codementor.io/classes/learn-javascript-live
JavaScript
7
star
6

pure-js-todo-app

A brief demonstration from a recent JavaScript class of creating a web app in pure JavaScript: https://www.codementor.io/classes/learn-javascript-live
JavaScript
6
star
7

js-test-boilerplate

An empty project with Tape to demonstrate proper unit test writing. Part of a recent Intro to JavaScript class I taught.
JavaScript
5
star
8

react-redux-boilerplate

A minimalist boilerplate for modern React+Redux apps.
JavaScript
5
star
9

react-bulma

A thin wrapper around bulma.io for React
JavaScript
4
star
10

ng-curtain-bower

Bower repository for ng-curtain
JavaScript
2
star
11

redux-live-class-todo-app

A primitive React+Redux example todo app for a live class. https://www.codementor.io/classes/learn-reactjs-and-redux-live
JavaScript
2
star
12

emergenesis.com

The public website of Emergenesis, LLC
Scala
1
star
13

mbg

The Magic Bean Generator
1
star
14

joshdmiller.com

My personal website
JavaScript
1
star
15

citeplasm-rest-server

The Citeplasm REST API server, a Play Framework project
Scala
1
star
16

rikerchat

A demo of creating a web app from scratch using functional programming
JavaScript
1
star
17

citeplasm-web-client

The HTML5+Dojo client for Citeplasm
CoffeeScript
1
star
18

gestaltfoundation.org

The official website of the Gestalt Foundation, Inc.
1
star
19

dotfiles.joshdmiller.com

A documentation website for my dot files.
CoffeeScript
1
star
20

vim-latex

This my copy of vim-latex to which I make small customizations. See http://vim-latex.sf.net for more information.
Vim Script
1
star