A simple AngularJS directive to use jQuery backstretch plugin (http://srobbin.com/jquery-plugins/backstretch/)
Get the last angular-backstretch.js
from here OR install it via Twitter bower: bower install angular-backstretch
- Include
angular-backstretch.js
in your project - Add it as a dependency of your main module:
angular.module('app', ['backstretch'])
- Declare an HTML element using the directive:
<body backstretch background-url="..."></body>