Directive uses data from scope