|
1 | | -angular.module('starter.controllers', []) |
2 | | - |
3 | | -.controller('AppCtrl', function($scope, $ionicModal, $timeout) { |
4 | | - // Form data for the login modal |
5 | | - $scope.loginData = {}; |
6 | | - |
7 | | - // Create the login modal that we will use later |
8 | | - $ionicModal.fromTemplateUrl('templates/login.html', { |
9 | | - scope: $scope |
10 | | - }).then(function(modal) { |
11 | | - $scope.modal = modal; |
12 | | - }); |
13 | | - |
14 | | - // Triggered in the login modal to close it |
15 | | - $scope.closeLogin = function() { |
16 | | - $scope.modal.hide(); |
17 | | - }; |
18 | | - |
19 | | - // Open the login modal |
20 | | - $scope.login = function() { |
21 | | - $scope.modal.show(); |
22 | | - }; |
23 | | - |
24 | | - // Perform the login action when the user submits the login form |
25 | | - $scope.doLogin = function() { |
26 | | - console.log('Doing login', $scope.loginData); |
27 | | - |
28 | | - // Simulate a login delay. Remove this and replace with your login |
29 | | - // code if using a login system |
30 | | - $timeout(function() { |
31 | | - $scope.closeLogin(); |
32 | | - }, 1000); |
33 | | - }; |
| 1 | +angular.module('jsconfuy.controllers', []) |
| 2 | + |
| 3 | +.controller('AppCtrl', function($scope) { |
| 4 | + |
| 5 | +}) |
| 6 | + |
| 7 | +.controller('SpeakersCtrl', function($scope) { |
| 8 | + |
| 9 | +}) |
| 10 | + |
| 11 | +.controller('VenueCtrl', function($scope) { |
| 12 | + |
| 13 | +}) |
| 14 | + |
| 15 | +.controller('AgendaCtrl', function($scope) { |
| 16 | + |
34 | 17 | }) |
35 | 18 |
|
36 | | -.controller('PlaylistsCtrl', function($scope) { |
37 | | - $scope.playlists = [ |
38 | | - { title: 'Reggae', id: 1 }, |
39 | | - { title: 'Chill', id: 2 }, |
40 | | - { title: 'Dubstep', id: 3 }, |
41 | | - { title: 'Indie', id: 4 }, |
42 | | - { title: 'Rap', id: 5 }, |
43 | | - { title: 'Cowbell', id: 6 } |
44 | | - ]; |
| 19 | +.controller('EventCtrl', function($scope, $stateParams) { |
| 20 | + $scope.eventId = $stateParams.eventId; |
45 | 21 | }) |
46 | 22 |
|
47 | | -.controller('PlaylistCtrl', function($scope, $stateParams) { |
48 | | -}); |
| 23 | +; |
0 commit comments