Service id to controllers
authorseshukm <seshu.kumar.m@huawei.com>
Wed, 26 Apr 2017 06:52:57 +0000 (12:22 +0530)
committerseshukm <seshu.kumar.m@huawei.com>
Wed, 26 Apr 2017 06:52:57 +0000 (12:22 +0530)
Service id will be available to overlay and underlay controllers

IssueId : CLIENT-204

Change-Id: I3bacab8575e6bf2f10e829c7a2dcacb55871679d
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js

index 66034b9..bfc8833 100644 (file)
@@ -659,8 +659,9 @@ var app = angular.module("lcApp", ["ui.router", "ngTable"])/*, 'ui.bootstrap', '
 \r
     /*-------------------------------------------------------------------------------OverlayVPN---------------------------------------------------------------------*/\r
 \r
-    .controller("overlayVPNCtrl", function($scope, $rootScope, $compile, DataService, NgTableParams){\r
+    .controller("overlayVPNCtrl", function($scope, $rootScope, $stateParams, $compile, DataService, NgTableParams){\r
         $scope.message = "Overlay VPN";\r
+        console.log("Service Id: "+ $stateParams.id);\r
 \r
         $scope.init = function() {\r
             //console.log("Overlay VPN... ng-init + " +  $rootScope.lcmModelTemplate);\r
@@ -712,8 +713,9 @@ var app = angular.module("lcApp", ["ui.router", "ngTable"])/*, 'ui.bootstrap', '
 \r
     /*-------------------------------------------------------------------------------UnderlayVPN---------------------------------------------------------------------*/\r
 \r
-    .controller("underlayVPNCtrl", function($scope, $rootScope, $compile, DataService, NgTableParams){\r
+    .controller("underlayVPNCtrl", function($scope, $rootScope, $stateParams, $compile, DataService, NgTableParams){\r
         $scope.message = "Underlay VPN";\r
+        console.log("Service Id: "+ $stateParams.id);\r
         $scope.tpTableShowing = false;\r
 \r
         $scope.init = function() {\r