View sub generator update for injecting component with import option