I'm trying to resize a div with a background image (left) and a variable height description (right), but can't get it to work. Here's the fiddle . I tried several things with/without zepto/jQuery/document.getElementById ... nothing works.
.directive('resize', function () {
return {
restrict: 'A',
scope: {},
link: function(scope, elem, attrs) {
elem.height(400);
}
};
})