angular-fluidbox-commonjs

1.0.2 • Public • Published

angular-fluidbox

Angular directive wrapping fluidbox library.

How to use it:

npm install --save angular-fluidbox

or

bower install --save angular-fluidbox

Make sure that jquery and fluidbox are pulled as dependencies.

Then you need to include the module fluidbox inside your module declaration. Eg:

angular.module('app', ['fluidbox']);

Last step is to use the directive this way

<a href="http://placehold.it/600x600" fluidbox>
  <img src="http://placehold.it/200x200">
</a>

The directive will observe on ng-href attributes by default ( if there are any )

TODO

  • Service for closing, opening etc fluidbox instances
  • Events broadcast?

/angular-fluidbox-commonjs/

    Package Sidebar

    Install

    npm i angular-fluidbox-commonjs

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • hanford