use a container to dynamically inject directive