Skip to content

Commit b9fb34c

Browse files
hemangsksils
authored andcommitted
app.js: Add Team directive
This moves team members json object inside Team directive.
1 parent b94d659 commit b9fb34c

1 file changed

Lines changed: 54 additions & 44 deletions

File tree

assets/app.js

Lines changed: 54 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,62 @@ app.controller('TabController',['$location','$scope', function ($location, $scop
2424
return $location.path() == stab
2525
}
2626
}])
27+
app.directive('team', function () {
28+
return{
29+
restrict: 'E',
30+
templateUrl: '/partials/tabs/team.html',
31+
controller: function () {
32+
self = this;
33+
self.profile = [
34+
{
35+
"name" : "Lasse Schuirmann",
36+
"id" : "sils",
37+
"picture" : "https://avatars2.githubusercontent.com/u/5716520",
38+
"short_tagline": "Problem solver",
39+
"bio": "Founder of <a href='http://coala.io'>coala</a>, <a href='http://gitmate.io'>GitMate</a> and viperdev and conference speaker."
40+
},
41+
{
42+
"name" : "Mischa Krüger",
43+
"id" : "Makman2",
44+
"picture" : "https://avatars3.githubusercontent.com/u/6023916",
45+
"short_tagline": "Code & Review Junkie",
46+
"bio": "<a href='http://coala.io'>coala</a> core developer and inventor of the open source CE3D terminal game engine."
47+
},
48+
{
49+
"name" : "Adhityaa Chandrasekar",
50+
"id" : "adtac",
51+
"picture" : "https://avatars2.githubusercontent.com/u/7521600",
52+
"short_tagline": "Hardcore hacker",
53+
"bio": "<a href='http://coala.io'>coala</a> core developer and creator of climate and fssb."
54+
},
55+
{
56+
"name" : "Maximilian Scholz",
57+
"id" : "sims1253",
58+
"picture" : "https://avatars3.githubusercontent.com/u/6530123",
59+
"short_tagline": "Community evangelist",
60+
"bio": "Leader of the <a href='http://coala.io'>coala</a> community team and creator of the LineSpots algorithm."
61+
},
62+
{
63+
"name" : "Sebastian Latacz",
64+
"id" : "seblat",
65+
"picture": "https://avatars0.githubusercontent.com/u/18051901",
66+
"short_tagline":"Business expert",
67+
"bio" : "Founder of <a href='http://gitmate.io'>GitMate</a> and solver of the most complicated business problems."
68+
},
69+
{
70+
"name" : "Hemang Kumar",
71+
"id" : "hemangsk",
72+
"picture": "https://avatars1.githubusercontent.com/u/13018570",
73+
"short_tagline":"Frontend Enthusiast",
74+
"bio" : "<a href='http://coala.io'>coala</a> developer. Frontend lover. Creates and designs web frontends with passion."
75+
}
76+
]
77+
},
78+
controllerAs: "dc"
79+
}
80+
})
2781
app.controller('Data', ['$http', function($http , $scope){
2882
self = this;
29-
self.profile = [
30-
{
31-
"name" : "Lasse Schuirmann",
32-
"id" : "sils",
33-
"picture" : "https://avatars2.githubusercontent.com/u/5716520",
34-
"short_tagline": "Problem solver",
35-
"bio": "Founder of <a href='http://coala.io'>coala</a>, <a href='http://gitmate.io'>GitMate</a> and viperdev and conference speaker."
36-
},
37-
{
38-
"name" : "Mischa Krüger",
39-
"id" : "Makman2",
40-
"picture" : "https://avatars3.githubusercontent.com/u/6023916",
41-
"short_tagline": "Code & Review Junkie",
42-
"bio": "<a href='http://coala.io'>coala</a> core developer and inventor of the open source CE3D terminal game engine."
43-
},
44-
{
45-
"name" : "Adhityaa Chandrasekar",
46-
"id" : "adtac",
47-
"picture" : "https://avatars2.githubusercontent.com/u/7521600",
48-
"short_tagline": "Hardcore hacker",
49-
"bio": "<a href='http://coala.io'>coala</a> core developer and creator of climate and fssb."
50-
},
51-
{
52-
"name" : "Maximilian Scholz",
53-
"id" : "sims1253",
54-
"picture" : "https://avatars3.githubusercontent.com/u/6530123",
55-
"short_tagline": "Community evangelist",
56-
"bio": "Leader of the <a href='http://coala.io'>coala</a> community team and creator of the LineSpots algorithm."
57-
},
58-
{
59-
"name" : "Sebastian Latacz",
60-
"id" : "seblat",
61-
"picture": "https://avatars0.githubusercontent.com/u/18051901",
62-
"short_tagline":"Business expert",
63-
"bio" : "Founder of <a href='http://gitmate.io'>GitMate</a> and solver of the most complicated business problems."
64-
},
65-
{
66-
"name" : "Hemang Kumar",
67-
"id" : "hemangsk",
68-
"picture": "https://avatars1.githubusercontent.com/u/13018570",
69-
"short_tagline":"Frontend Enthusiast",
70-
"bio" : "<a href='http://coala.io'>coala</a> developer. Frontend lover. Creates and designs web frontends with passion."
71-
}
72-
]
7383

7484
self.plans = [
7585
{

0 commit comments

Comments
 (0)