Moved options from factory function to controller since options belong to a directive instance.