Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Component = {
- template: `...`,
- bindings: {
- userData: '<'
- }
- };
- angular
- .module('App.pages.profile', [uiRouter, meServiceModule])
- .component('profile', Component)
- .config(($stateProvider, $urlRouterProvider) => {
- 'ngInject';
- $stateProvider
- .state('profile', {
- url: '/profile',
- component: 'profile',
- resolve: {
- userData: meService => meService.fetchMe()
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement