2 * Copyright 2017 Huawei Technologies Co., Ltd.
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
21 * @name app.controller:HomeCtrl
\r
24 * Controller of the app
\r
28 .module('vnfmarket')
\r
29 .controller('lifeCycleOnboardingCtrl', lifeCycle);
\r
31 lifeCycle.$inject = [ 'vnfConfig', 'baseUrlConfig', '$mdDialog'];
\r
35 * Using function declarations
\r
36 * and bindable members up top.
\r
39 function lifeCycle(vnfConfig, baseUrlConfig,$mdDialog) {
\r
41 console.log("functionalTest")
\r
47 vm.listViewActions = {
\r
51 vm.pagination = [5, 10, 15, {
\r
54 return vm.lifeCycleTests.length ? vm.lifeCycleTests.length : 0;
\r
58 vm.paginationQuery = {
\r
64 vm.paginationOptions = {
\r
70 largeEditDialog: false,
\r
75 vm.getTests = function(){
\r
76 console.log(vm.lifeCycleTests)
\r
80 vm.hide = function(answer) {
\r
81 $mdDialog.hide(answer);
\r
84 vm.cancel = function() {
\r
88 vm.lifeCycleTests = [{
\r
89 "step" : "Lifecycle step-1",
\r
90 "parameter" : "Lifecycle Parameter1",
\r
94 "step" : "Lifecycle step-2",
\r
95 "parameter" : "Lifecycle Parameter2",
\r
98 "step" : "Lifecycle step-3",
\r
99 "parameter" : "Parameter3",
\r