Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. const Component = {
  2. template: `...`,
  3. bindings: {
  4. userData: '<'
  5. }
  6. };
  7. angular
  8. .module('App.pages.profile', [uiRouter, meServiceModule])
  9. .component('profile', Component)
  10. .config(($stateProvider, $urlRouterProvider) => {
  11. 'ngInject';
  12. $stateProvider
  13. .state('profile', {
  14. url: '/profile',
  15. component: 'profile',
  16. resolve: {
  17. userData: meService => meService.fetchMe()
  18. }
  19. });
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement