-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
38 lines (34 loc) · 980 Bytes
/
app.js
File metadata and controls
38 lines (34 loc) · 980 Bytes
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
38
require('angular');
require('angular-ui-router');
require('angular-aria');
require('angular-animate');
require('angular-material');
require('./components/home/home.js');
require('./components/about/about.js');
var app = angular.module('myApp', ['ui.router','ngMaterial','myApp.home','myApp.about'])
app.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/");
$stateProvider
.state('home', {
url: "/",
views : {
"" : {
templateUrl:"app/components/home/home.html"
},
"header@home":{
templateUrl:"app/shared/header/header.html"
}
}
})
.state('about', {
url: "/about",
views : {
"" : {
templateUrl:"app/components/about/about.html"
},
"header@about":{
templateUrl:"app/shared/header/header.html"
}
}
});
});