-
Notifications
You must be signed in to change notification settings - Fork 183
Breadcrumb unusable with multiple ui-views #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Right, I always had this issue in mind, it is the major reason why the module is still in 0.x.x version (it is a global issue, not specific to the parent property. For me, the smartest way to resolve this bug is to add a new property in $stateProvider
.state('report',{
ncyBreadcrumb: {
label: 'Multiple views state',
mainView: 'tabledata'
},
views: {
'filters': {
templateUrl: 'report-filters.html',
controller: function($scope){ ... controller stuff just for filters view ... }
},
'tabledata': {
templateUrl: 'report-table.html',
controller: function($scope){ ... controller stuff just for tabledata view ... }
},
'graph': {
templateUrl: 'report-graph.html',
controller: function($scope){ ... controller stuff just for graph view ... }
},
}
}) where But I can't say yet if I can access to the multiple views of the state and generate the breadcrumb only with the main view. |
It would be fantastic if this is implemented - I am currently facing the same issue. +1 :-) |
+1 It's popped up here too |
+1 I think this would solve my current problem of the label not being parsed properly because of the different views. |
I just had a look at this to try and solve it for myself. I'm guessing the ideal place to check the Any ideas? |
+1, I don't have multiple views, but I define a single view in the state's views config object. I'm not able to read the scope variable in the label. |
+1 |
1 similar comment
+1 |
Just did a pull request to solve this issue. #93 |
+1 |
…ering breadcrumbs. The property ncyBreadcrumbIgnore should be set to true on the view controller. This also could help with the issue ncuillery#62
Provide the way to ignore some views when rendering breadcrumbs. To achieve this the property ncyBreadcrumbIgnore should be set to true on the view controller scope. This also could help with the issue ncuillery#62
Provide the way to ignore some views when rendering breadcrumbs. To achieve this the property ncyBreadcrumbIgnore should be set to true on the view controller scope. Closes ncuillery#42 ncuillery#62
I thought this issue has been automatically closed by 934c552 but I hasn't 😄 |
I reopen the issue to remind myself I must mention the |
@ncuillery Can you explain where i should use ncyBreadcrumbIgnore i'm a bit lost .. |
Example working here : http://plnkr.co/edit/yeODlzws6gv05tZ7nURd?p=preview Note that if you are re-using the view somewhere else and you want to display the route. This will not work anymore. So try to find a way to 'true' or 'false'
|
When you have multiple
ui-views
, thencyBreadcrumb.parent
function gets executed for each of the views.This is not correct, you should be able to specify for what
view
/controller
/scope
to get theparent
andlabel
executed against.How can you do that?
The text was updated successfully, but these errors were encountered: