From f6f38bd459c5a495f963dd898cb2090a75b10a6b Mon Sep 17 00:00:00 2001 From: seshukm Date: Wed, 26 Apr 2017 12:22:57 +0530 Subject: Service id to controllers Service id will be available to overlay and underlay controllers IssueId : CLIENT-204 Change-Id: I3bacab8575e6bf2f10e829c7a2dcacb55871679d Signed-off-by: seshukm --- lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lifecyclemgr') diff --git a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js index 66034b92..bfc88337 100644 --- a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js +++ b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js @@ -659,8 +659,9 @@ var app = angular.module("lcApp", ["ui.router", "ngTable"])/*, 'ui.bootstrap', ' /*-------------------------------------------------------------------------------OverlayVPN---------------------------------------------------------------------*/ - .controller("overlayVPNCtrl", function($scope, $rootScope, $compile, DataService, NgTableParams){ + .controller("overlayVPNCtrl", function($scope, $rootScope, $stateParams, $compile, DataService, NgTableParams){ $scope.message = "Overlay VPN"; + console.log("Service Id: "+ $stateParams.id); $scope.init = function() { //console.log("Overlay VPN... ng-init + " + $rootScope.lcmModelTemplate); @@ -712,8 +713,9 @@ var app = angular.module("lcApp", ["ui.router", "ngTable"])/*, 'ui.bootstrap', ' /*-------------------------------------------------------------------------------UnderlayVPN---------------------------------------------------------------------*/ - .controller("underlayVPNCtrl", function($scope, $rootScope, $compile, DataService, NgTableParams){ + .controller("underlayVPNCtrl", function($scope, $rootScope, $stateParams, $compile, DataService, NgTableParams){ $scope.message = "Underlay VPN"; + console.log("Service Id: "+ $stateParams.id); $scope.tpTableShowing = false; $scope.init = function() { -- cgit 1.2.3-korg