blob: e33bae41860f748798cfc07c4cb9c4a13faaebb0 [file] [log] [blame]
Max Chu3ca3e202017-09-14 10:33:09 -07001
2/*
3 * Copyright 2017-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
19/// <reference path="../typings/index.d.ts" />
20import * as angular from 'angular';
21
22import 'angular-ui-router';
23import 'angular-resource';
24import 'angular-cookies';
25import routesConfig from './routes';
26import {xosDemoComponent} from './app/components/demo';
27
28
29
30angular.module('<%= name %>', [
31 'ui.router',
32 'app'
33 ])
34 .config(routesConfig)
35 .component('demo', xosDemoComponent)
36 .run(function(
37 $log: ng.ILogService,
38 $state: ng.ui.IStateService,
39 XosNavigationService: any) {
40 $log.info('[<%= name %>] App is running');
41
42 XosNavigationService.add({
43 label: '<%= name %>',
44 state: 'xos.<%= name %>.demo',
45 });
46
47 });