-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (28 loc) · 920 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import angularjsTemplate from './src/templates/angularjs.html';
import './index.css';
import Landing from './src/landing/landing';
import Root from './src/root/root';
import Login from './src/login/login';
import Content from './src/content/content';
import { routeConfigs } from './src/angularRoutes';
const template = angularjsTemplate;
const config = ['$locationProvider', '$urlRouterProvider', ($locationProvider, $urlRouterProvider) => {
$locationProvider.html5Mode(true);
$urlRouterProvider.otherwise('/');
}];
const controllerAs = 'vm';
const controller = function() {};
angular
.module('application', [
uiRouter,
Root,
Landing,
Login,
Content
])
.config(config)
.config(routeConfigs)
.directive('app', () => ({ template, controller, controllerAs }))
.run();