forked from abhi12ravi/mozillatn.github.io-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
70 lines (50 loc) · 1.42 KB
/
script.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
var app=angular.module('single-page-app',['ngRoute']);
app.config(function($routeProvider){
$routeProvider
.when('/',{
templateUrl: 'home.html'
})
.when('/contribute',{
templateUrl: 'contribute.html'
})
.when('/taskforce',{
templateUrl: 'task.html'
})
.when('/events',{
templateUrl: 'events.html'
})
.when('/request',{
templateUrl: 'request.html'
})
.when('/blog',{
templateUrl: 'blog.html'
})
.when('/about',{
templateUrl: 'about.html'
});
});
/*app.controller('cfgController',function($scope){
$scope.message="Hello world";
});
*/
app.controller('cfgController', function($scope, $http) {
$http.get('common.json')
.then(function(res){
$scope.todos = res.data;
$scope.socialmedia = res.data.socialmedia_links;
$scope.contribution_areas = res.data.contribution_areas;
$scope.googleform = res.data.google_from;
});
$http.get('event.json')
.then(function(res){
$scope.eventsarray = res.data.events;
});
$http.get('blogpost.json')
.then(function(res){
$scope.blogposts = res.data.blog_links;
});
$http.get('taskforce.json')
.then(function(res){
$scope.taskforceteam = res.data.taskforce;
});
});