customize generated directive

This makes it possible to change the configuration of the directive
generated by  service.