get component's resource for component/component.