JSPM

angular-background-image

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q48215F
  • License MIT

Background image directive for angular.

Package Exports

  • angular-background-image

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-background-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

angular-background-image

Background image directive for angular.

Get started

Install angular-background-image:

$ npm install angular-background-image

Include the script file:

require("angular-background-image");

Add backgroundImage module to your angular app:

var app = angular("myapp", ["backgroundImage"]);

Use directive:

<div background-image="{{model.imageURL}}"></div>

Development

Style guide check

Use JSCS to enforce code style guide, http://jscs.info

jscs src/index.js

Credits

Build so often, too often, now as module.

First implementation has been based on http://stackoverflow.com/a/15537359, thanks!