diff --git a/app/controllers.js b/app/controllers.js index d97a353..f308d78 100644 --- a/app/controllers.js +++ b/app/controllers.js @@ -91,7 +91,7 @@ angular.module('FlameSlackApp') $scope.channels.$save() $scope.messages[$scope.newChannelName] = Messages($scope.newChannelName) $scope.newChannelName = '' - $scope.isNewChannelFormHidden = true + $scope.isNewChannelFormShowed = false } }) diff --git a/app/factories.js b/app/factories.js index 340b28b..d58e0d4 100644 --- a/app/factories.js +++ b/app/factories.js @@ -48,7 +48,7 @@ angular.module('FlameSlackApp') }) .factory('Messages', function($firebaseArray, FB) { - var msgRef = new Firebase(FB + 'messages/') + var msgRef = new Firebase(FB + 'messages') return function(channel) { return $firebaseArray(msgRef.child(channel))