[VID-3] Setting docker image tag
[vid.git] / vid / src / main / webapp / app / vid / scripts / controller / VidApp.js
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 (function () {
22   'use strict';
23   
24   app.config(['$routeProvider', '$locationProvider', function ($routeProvider) {
25       $routeProvider
26         .when('/models/services', {
27           controller: 'ServiceModelController',
28           templateUrl: 'app/vid/scripts/view-models/serviceModels.htm'
29         })
30         .when('/instances/services', {
31                 templateUrl : "app/vid/scripts/view-models/aaiGetSubs.htm", 
32                 controller : "aaiSubscriberController"
33         })
34         .when('/instances/subdetails', {
35                 templateUrl : "app/vid/scripts/view-models/aaiSubDetails.htm", 
36                 controller : "aaiSubscriberController"
37         })
38         .when('/instantiate', {
39           controller: 'InstantiationController',
40           templateUrl: 'app/vid/scripts/view-models/instantiate.htm'
41         })
42         .otherwise({
43                 redirectTo: '/models/services'
44         });
45     }]);
46   
47   app.service('vidService', function() {
48           var _model = undefined;
49           var _instance = undefined;
50           
51           this.setModel = function(model) {
52                   _model = model;
53           };
54           
55           this.getModel = function() {
56                   return _model;
57           };
58           
59           this.setInstance = function(instance) {
60                   _instance = instance;
61           };
62           
63           this.getInstance = function() {
64                   return _instance;
65           };
66   });
67 })();