I have Parent Component and child components. I am including child components(3 types of html based on type) in parent component(html) using data-sly-resource in sightly. For type 3 child component I need to render Parent component's data(i have sling model for Parent Component) in html. comparing types is done from child sling model. How to achieve this funtionality?
my code is
> <sly data-sly-use.model="com.example.MyBlog.ChildModel" data-sly-unwrap>
> .
> .
> .
> <div data-sly-test="${model.itemType} == 'type3'">
> <div> Here I need to access data from Parent Component(either sling model or JCR)</div>