Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .state('user', {
- url: "/user/:id",
- views: {
- 'container-view': {
- templateUrl:"user/_Index"
- },
- 'A@NetworkDistribution' :{
- templateUrl:"user/_TreeView"
- },
- 'B@NetworkDistribution' :{
- templateUrl: function(stateParams) {
- return '/user/home/' + stateParams.id;
- }
- }
- }
- })
- .state('user.xyz', {
- url: "xyz/:id",
- views: {
- 'container-view': {
- templateUrl:"user/_Index"
- },
- 'A@NetworkDistribution' :{
- templateUrl:"user/_TreeView"
- },
- 'B@NetworkDistribution' :{
- templateUrl:"user/xyz"
- },
- 'content-view@user.xyz' :{
- templateUrl: function(stateParams) {
- return "user/xyzInfo/" + stateParams.id;
- }
- }
- }
- })
- .state('user.abc', {
- url: "abc/:id",
- views: {
- 'container-view': {
- templateUrl:"user/_Index"
- },
- 'A@NetworkDistribution' :{
- templateUrl:"user/_TreeView"
- },
- 'B@NetworkDistribution' :{
- templateUrl:"user/abc"
- },
- 'content-view@user.abc' :{
- templateUrl: function(stateParams) {
- return "user/abcInfo/" + stateParams.id;
- }
- }
- }
- })
Add Comment
Please, Sign In to add comment