css – 未捕获的TypeError:无法读取未定义的属性’$$minErr’

前端之家收集整理的这篇文章主要介绍了css – 未捕获的TypeError:无法读取未定义的属性’$$minErr’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我收到此错误并且我的验证无法正常工作我使用下面声明的CDN我的数据存储在localstorage中
Uncaught TypeError: Cannot read property '$$minErr' of undefined
    (anonymous function) @ angular-resource.js:8
    (anonymous function) @ angular-resource.js:6

我用这个CDN

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular-resource.min.js"></script>

并听到我的Html表格

<div> <input id="email"
                       class="form-control"
                       type="email"
                       name="email"
                       ng-model="user.email"
                       pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"
                       placeholder="Enter Your Email"
                       required
                />
                <span ng-show="myForm.email.$dirty && myForm.email.$invalid" class="color">Invalid Email address.</span>
        <span ng-show="myForm.email.$dirty  && form.email.$error.required">
      Email is required
    </span>
  </div>
    <div> <input type="password"
                         class="form-control"
                         ng-minlength="5"
                         ng-maxlength="10"
                         ng-model="loginCtrl.user.pass"
                         name="pass"
                         id="pass"
                         placeholder="Enter Your Password"
                         required
            />
                <span ng-show="myForm.pass.$dirty && myForm.pass.$error.required" class="color">required!!!</span> <br>
            </div>
 <div align="center">
                <input ng-click="myFun()"type="submit"  class="btn btn-success"  ng-disabled="myForm.$invalid"  value="Login" >
            </div>

解决方法

你还没有加载Angular.在包括angular-resource之前包括angularJS cdn.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
原文链接:https://www.f2er.com/css/216115.html

猜你在找的CSS相关文章