From 239472ef7052441859f5ad921749a0504f2992b1 Mon Sep 17 00:00:00 2001 From: Caio SBA Date: Fri, 7 Aug 2015 02:53:16 -0300 Subject: [PATCH] Saving token in scope and fixing bug on metatag --- ConfJuvApp/www/index.html | 2 +- ConfJuvApp/www/js/controllers.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ConfJuvApp/www/index.html b/ConfJuvApp/www/index.html index fba85f7..c55d3b9 100644 --- a/ConfJuvApp/www/index.html +++ b/ConfJuvApp/www/index.html @@ -2,7 +2,7 @@ - + #3confjuv diff --git a/ConfJuvApp/www/js/controllers.js b/ConfJuvApp/www/js/controllers.js index 75d0cd9..2372313 100644 --- a/ConfJuvApp/www/js/controllers.js +++ b/ConfJuvApp/www/js/controllers.js @@ -21,9 +21,10 @@ angular.module('confjuvapp.controllers', []) // Function to open the modal $scope.openModal = function() { if(ConfJuvAppUtils.getPrivateToken()){ + $scope.token = ConfJuvAppUtils.getPrivateToken(); $scope.loggedIn = true; $scope.loadMe(); - $scope.loadTopics(ConfJuvAppUtils.getPrivateToken()); + $scope.loadTopics($scope.token); } else if ($scope.modal) { $scope.modal.show(); } else { -- libgit2 0.21.2