ng按钮错误不工作,只显示一条消息angularjs
ng-button error not working showing only one message angularjs
只收到一条消息请在输入名称后输入名字。你能建议我对angular js很陌生吗?如果名字输入,请建议如何停止错误
<div class="text-input">
<label for="player-firstname">First Name *</label>
<i class="fa fa-check-circle success" ng-show="signup.userInfo.playerFirstname.$valid"></i>
<i class="fa fa-times-circle error" ng-show="signup.userInfo.playerFirstname.$invalid && !signup.userInfo.playerFirstname.$pristine">Pls Enter First Name</i>
<input type="text"
placeholder="James"
id="player-firstname"
name="playerFirstname"
ng-model="player.first_name"
tabindex="1"
required>
</div>
<div class="black-button medium-button float-right" ng-if="signup.$invalid">
<button ng-click="formError()" tabindex="15"><span class="button-text">Create Account
<i class="fa fa-chevron-right"></i>
</button>
</div>
angular.module('users.players.signup', ['vcRecaptcha', 'services.errors'])
.controller('playerSignup', ['user', '$scope', '$log', '$location', '$http', '$timeout', 'auth', 'vcRecaptchaService', '$routeParams', '$rootScope', 'DateUtility', 'notify', function (user, $scope, $log, $location, $http, $timeout, auth, vcRecaptchaService, $routeParams, $rootScope, DateUtility, notify) {
'use strict';
$scope.process
$scope.formError = function(){
$scope.process = true;
if($scope.first_name == null){
notify.message("Pls enter first name");
$scope.process = false;
return;
}
}
ng-click="formError()"
应该是ng-click="formErrors()"
——不确定这是否是唯一的问题,但应该继续前进。
相关文章:
- 当我的条件为true时,显示一条弹出消息
- 加载页面每10秒显示一条不同的消息
- 当用户单击保存按钮时,标签会显示一条消息
- 仅显示一条通用消息,而不是每个输入显示一条
- 如果用户的浏览器早于以下版本,则显示一条消息:IE 10、Firefox 39、Chrome 39、Opera 8
- jQuery image丢弃无效的图像类型,并显示一条无效的消息而不是警告框
- 角度:当没有结果时显示一条消息 ng-重复角度 ?(具体情况)
- Javascript重定向然后显示一条消息
- 如果未选中复选框,则会显示一条消息
- cs.js - 同时仅显示一条线(在多折线图中)
- 在jquery flot图表中,只突出显示一条特定的网格线
- Joomla网站-如果输入的用户的屏幕分辨率很小,则显示一条消息
- 当我的网站打开时,显示一条弹出消息
- 每当出现JavaScript错误时,都会显示一条突出的错误消息(用于开发)
- 我需要在表单提交后显示一条包含变量(表单中的答案)的消息
- ng按钮错误不工作,只显示一条消息angularjs
- 如果在输入框中输入了特定的值,则使用javascript显示一条消息
- 如何使用javascript每五分钟显示一条消息
- 我想在获取结果时显示一条消息
- 如果数据库获得新条目,则显示一条消息