As title,I'm trying to use another same level component in current component,but facing this errors.
Here is my block module
@NgModel({
imports:[...otherModule],
declarations:[messageBlockComponents],
export:[messageBlockComponents]
})
<message-block></message-block>
The errors is happening in profileInfo.html.I have declare message-block in block moodule,and it's a parent module,so I don't add any declartion in profileBlock.modules.
How do I add message-block into profileInfo component?
The reason that cause this error is that same layer component cannot identify each other,unless they have their own module to manage themself.
so I create a module for message-block.Let the block.module and profileBlock.module both import message-block module.