2016-03-22 21 views
6

の「$$ minErr」私はこのエラーを持って、私のデータの下に宣言したとして私の検証が正常に動作していない私は、CDNを使用するがのlocalStorageキャッチされない例外TypeError:プロパティを読み取ることができません未定義

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._%+-][email protected][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> 

答えて

15

です。角度リソースを含める前に、angularJS cdnを含めます。

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> 
+1

「SCRIPT5007:未定義またはnull参照angle-animate.js(63、1)のプロパティ '$$ minErr'を読み取ることができません。 angular-animate.jsとangular-resource.min.jsの前にangular.min.jsを含めて、私の問題を解決しました。 – somnathchakrabarti

関連する問題