2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
24 app.config(['$routeProvider', '$locationProvider', function ($routeProvider) {
26 .when('/models/services', {
27 controller: 'ServiceModelController',
28 templateUrl: 'app/vid/scripts/view-models/serviceModels.htm'
30 .when('/instances/services', {
31 templateUrl : "app/vid/scripts/view-models/aaiGetSubs.htm",
32 controller : "aaiSubscriberController"
34 .when('/instances/subdetails', {
35 templateUrl : "app/vid/scripts/view-models/aaiSubDetails.htm",
36 controller : "aaiSubscriberController"
38 .when('/instantiate', {
39 controller: 'InstantiationController',
40 templateUrl: 'app/vid/scripts/view-models/instantiate.htm'
43 redirectTo: '/models/services'
47 app.service('vidService', function() {
48 var _model = undefined;
49 var _instance = undefined;
51 this.setModel = function(model) {
55 this.getModel = function() {
59 this.setInstance = function(instance) {
63 this.getInstance = function() {