get component resource for component/component.