Skip to content
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

Wiki addition #166

Open
brunocoelho opened this issue Sep 26, 2016 · 0 comments
Open

Wiki addition #166

brunocoelho opened this issue Sep 26, 2016 · 0 comments

Comments

@brunocoelho
Copy link

Hi @ncuillery, I tried to edit this wiki but I think it's not allowed for non-collaborators.

This is what I want to add just below State options as first property:

force

Gives the ability to show specific abstract states, even if options.includeAbstract is turned off in global configuration.

For example, this state's config:

$stateProvider.state('home', {
  url: '/home',
  templateUrl: 'views/home.html',
  ncyBreadcrumb: {
    label: 'Home'
  }
});

$stateProvider.state('list', {
  abstract: true,
  ncyBreadcrumb: {
    force: true,
    label: 'List',
    parent: 'home'
  }
});

$stateProvider.state('list.contact', {
  url: '/contact',
  templateUrl: 'views/contact.html',
  ncyBreadcrumb: {
    label: 'Contact'
  }
});

... will produce Home / List / Contact rather than Home / Contact.

Thanks!

@brunocoelho brunocoelho changed the title Wiki improvements Wiki addition Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant