Skip to content

Implement resolveAs #2605

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

Merged
merged 2 commits into from
Mar 5, 2016
Merged

Implement resolveAs #2605

merged 2 commits into from
Mar 5, 2016

Conversation

christopherthielen
Copy link
Contributor

Add a new injectable $resolve$ for each node. $resolve$ contains the resolved data available for injection in that node.

Implement scope.$resolve support like ngRoute. Allows routing to components using a template like

.state('foo', {
  template: '<user-component user="$resolve.user"></user-component>',
  resolve: { user: UserService => UserService.getUser(); }
});

@ProLoser ProLoser changed the title Implement resolveAs Implement resolveAs Mar 4, 2016
feat(uiView): Route to components using templates
closes #2175
closes #2547
nateabele added a commit that referenced this pull request Mar 5, 2016
@nateabele nateabele merged commit d3106c8 into angular-ui:master Mar 5, 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

Successfully merging this pull request may close these issues.

3 participants