Guest User

Untitled

a guest
Jul 20th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. .state('user', {
  2. url: "/user/:id",
  3. views: {
  4. 'container-view': {
  5. templateUrl:"user/_Index"
  6. },
  7. 'A@NetworkDistribution' :{
  8. templateUrl:"user/_TreeView"
  9. },
  10. 'B@NetworkDistribution' :{
  11. templateUrl: function(stateParams) {
  12. return '/user/home/' + stateParams.id;
  13. }
  14. }
  15. }
  16. })
  17.  
  18. .state('user.xyz', {
  19. url: "xyz/:id",
  20. views: {
  21. 'container-view': {
  22. templateUrl:"user/_Index"
  23. },
  24. 'A@NetworkDistribution' :{
  25. templateUrl:"user/_TreeView"
  26. },
  27. 'B@NetworkDistribution' :{
  28. templateUrl:"user/xyz"
  29. },
  30. 'content-view@user.xyz' :{
  31. templateUrl: function(stateParams) {
  32. return "user/xyzInfo/" + stateParams.id;
  33. }
  34. }
  35. }
  36. })
  37.  
  38. .state('user.abc', {
  39. url: "abc/:id",
  40. views: {
  41. 'container-view': {
  42. templateUrl:"user/_Index"
  43. },
  44. 'A@NetworkDistribution' :{
  45. templateUrl:"user/_TreeView"
  46. },
  47. 'B@NetworkDistribution' :{
  48. templateUrl:"user/abc"
  49. },
  50. 'content-view@user.abc' :{
  51. templateUrl: function(stateParams) {
  52. return "user/abcInfo/" + stateParams.id;
  53. }
  54. }
  55. }
  56. })
Add Comment
Please, Sign In to add comment