Fixing initialisation of $scope.tagField var