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

routed component #79

Closed
lionelB opened this issue Jun 21, 2016 · 5 comments
Closed

routed component #79

lionelB opened this issue Jun 21, 2016 · 5 comments

Comments

@lionelB
Copy link

lionelB commented Jun 21, 2016

Hello todd,

thanks for this new version of your styleguide. You mention in routed component that we can use a component prop when declaring a state but I can't find any documentation in ui-router about it

    $stateProvider
      .state('todos', {
        url: '/todos',
        component: 'todo',
        resolve: {
          todoData: TodoService => TodoService.getTodos();
        }
      });
  })

I like the idea a lot can you have any infos on that ?

@qlonik
Copy link

qlonik commented Jun 24, 2016

Hello. This feature is available in ui-router v1-alpha. It is not present in the current version of ui-router.

@floriangosse
Copy link
Contributor

Checkout the issue angular-ui/ui-router#2547. There is a polyfill for it: ui-router-route-to-components.

@floriangosse
Copy link
Contributor

Hi @lionelB, do you have any further questions?

@lionelB
Copy link
Author

lionelB commented Jul 27, 2016

It' s ok thanks.

@lionelB lionelB closed this as completed Jul 27, 2016
@toddmotto
Copy link
Owner

And now in 1.0.0-beta ui-router :)

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

4 participants