(function(angular) {
'use strict';
angular.module('Hive')
.controller("registerCtrl", ["$scope", "refService","letterAvatarService","$ionicPopup", registerCtrlFunc])
function registerCtrlFunc($scope, refService,letterAvatarService,$ionicPopup) {
$scope.regissterForm = function() {
$scope.isUsernameDupe = false;
refService.ref().child("UserAuthInfo").on("value", function(snapshot) {
snapshot.forEach(function(childSNap) {
var key = childSNap.key();
var childData = childSNap.val();
if (childData.Username == $scope.register.username) {
This file has been truncated. show original