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

Allow states without any views #3178

Closed
christopherthielen opened this issue Nov 29, 2016 · 0 comments
Closed

Allow states without any views #3178

christopherthielen opened this issue Nov 29, 2016 · 0 comments

Comments

@christopherthielen
Copy link
Contributor

As of 1.0.0-beta.3 the ng1 code does not allow a state without a view.

If a state does not have a template, default it to <ui-view></ui-view>\

This has the benefit of allowing an abstract state to be created without any (explicit) template.

.state('foo', {
  abstract: true
}).state('foo.bar', {
  template: '<h1>bar</h1>'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant