Commit 239472ef7052441859f5ad921749a0504f2992b1

Authored by Caio Almeida
1 parent 73f1f471

Saving token in scope and fixing bug on metatag

ConfJuvApp/www/index.html
... ... @@ -2,7 +2,7 @@
2 2 <html>
3 3 <head>
4 4 <meta charset="utf-8">
5   - <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width; height=device-height">
  5 + <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, height=device-height">
6 6  
7 7 <title>#3confjuv</title>
8 8  
... ...
ConfJuvApp/www/js/controllers.js
... ... @@ -21,9 +21,10 @@ angular.module(&#39;confjuvapp.controllers&#39;, [])
21 21 // Function to open the modal
22 22 $scope.openModal = function() {
23 23 if(ConfJuvAppUtils.getPrivateToken()){
  24 + $scope.token = ConfJuvAppUtils.getPrivateToken();
24 25 $scope.loggedIn = true;
25 26 $scope.loadMe();
26   - $scope.loadTopics(ConfJuvAppUtils.getPrivateToken());
  27 + $scope.loadTopics($scope.token);
27 28 } else if ($scope.modal) {
28 29 $scope.modal.show();
29 30 } else {
... ...