-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontroller.js
46 lines (38 loc) · 1.28 KB
/
controller.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
// create the controller and inject Angular's $scope
scotchApp.controller('mainController', function($scope) {
// create a message to display in our view
$scope.message = 'Her a thessari sidu getur thu fundid allar thaer helstu upplysingar um islenskt sjonvarpshefni!';
});
scotchApp.controller('ruvController', ["$scope",'ruv', function($scope, ruv) {
ruv.success(function(data){
$scope.ruv = data;
});
}]);
scotchApp.controller('stod2Controller', ["$scope",'stod2', function($scope, stod2) {
stod2.success(function(data){
$scope.stod2 = data;
});
}]);
scotchApp.controller('skjar1Controller', ["$scope",'skjar1', function($scope, skjar1) {
skjar1.success(function(data){
$scope.skjar1 = data;
});
}]);
scotchApp.controller('stod2sportController', ["$scope",'stod2sport', function($scope, stod2sport) {
stod2sport.success(function(data){
$scope.stod2sport = data;
});
}]);
scotchApp.controller('aboutController', function($scope) {
$scope.message = 'Thessi vefsida er lokaverkefnid mitt i GSF og VEF';
});
scotchApp.controller('contactController', function($scope) {
$scope.message = 'Sendu a mig linu.';
});
scotchApp.controller('userController', function($scope) {
$scope.message = '';
});
function Ctrl($scope)
{
$scope.date = new Date();
}