Open mainfraame opened 6 years ago
Did you solve this problem at all? I'm having similar issues, but where the ui-view
directives are placed on root elements in our index.html
document. The React component simply won't render at all.
Hi, I'm facing this issue to, do someone have some workaround ?
For others and further concerns the view declaration must be done this way in order to ui-router/react-hybrid to recognize them as ReactComponents :
{
name: 'app.audit',
url: '/audit',
component: AuditPage
// UIViews are declared here
},
{
name: 'app.audit.orders',
url: '/order',
views: {
'filters@app.audit': {
component: FiltersComponent
},
'grid@app.audit': {
component: GridComponent
}
}
}
This way it work like a charm
I'm unable to get the name views to work on child states. From what I see, it looks like name property declared on my UIView(s) does not get passed down to the react-ui-view-adapter; it instead gets the default name ($default). I'm assuming this is why ui router is unable to render the view components.
package.json
My route/state declarations:
I've also tried this:
UIView(s) in app.audit:
This is what the page component (AuditPage) looks like when rendered:
Please let me know if you need any more info.