mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-24 14:26:23 +02:00
Major Redesign
This commit is contained in:
parent
2f0c8fdeab
commit
c97dcc5da7
40 changed files with 746 additions and 112 deletions
9
public/js/directives/backImg.directive.js
Normal file
9
public/js/directives/backImg.directive.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
angular.module('rallly')
|
||||
.directive('backImg', function(){
|
||||
return function(scope, element, attrs){
|
||||
var url = attrs.backImg;
|
||||
element.css({
|
||||
'background-image': 'url(/images/' + url +'.png)'
|
||||
});
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue