Files
deck/js/directive/avatar.js
Julius Haertl c958f9b37c Moar work
2016-08-15 11:29:11 +02:00

16 lines
295 B
JavaScript

app.directive('avatar', function() {
'use strict';
return {
restrict: 'A',
scope: true,
link: function(scope, element, attr){
attr.$observe('displayname', function(value){
console.log(value);
if(value!==undefined) {
$(element).avatar(value, 32);
}
});
}
};
});