0

こんにちは皆さん、私は新しいAngular jsです。formvalidationを適用していますが、エラーが発生しています

<form  name="myForm" ng-controller='formCtrl'>
    {{message}}
    <div class="form-group">    
          <input type="text" class="form-control" name='propname'  ng-model='propname' placeholder="Property No. or Name *" required>
            <span ng-show="myForm.propname.$dirty && myForm.propname.$error.required">Required!</span>
    </div>
    <div class="form-group">
         <input type="text" class="form-control" id="" placeholder="Flat No. (if applicable)">
    </div>
    <div class="form-group">
        <input type="text" class="form-control" id="" placeholder="Street Name *">
    </div>
    <div class="form-group">
         <input type="text" class="form-control" id="" placeholder="Search Full Postcode *">
    </div>
    <button type="submit" class="btn btn-info">Search</button>
    <span class="floatRight">* Required fields</span>
</form>

ページをロードすると、コンソールにエラーが表示されます

angular.min.js:117 エラー: [$parse:syntax] http://errors.angularjs.org/1.5.5/ $parse/syntax?p0=%26%26&p1=is%20not%20a%20validNaNdentifier&p2=18&p3 =myForm.propname.%20%26%26%20myForm.propname..required&p4=%26%26%20myForm.propname..required at Error (native) at http://localhost/PT/assets/js/angular. min.js:6:412 で Object.throwError ( http://localhost/PT/assets/js/angular.min.js:227:427 ) で Object.identifier ( http://localhost/PT/assets/js ) /angular.min.js:226:149 ) で Object.primary ( http://localhost/PT/assets/js/angular.min.js:225:234 ) で Object.unary ( http://localhost/PT ) /assets/js/angular.min.js:223:411 ) Object.multiplicative (http://localhost/PT/assets/js/angular.min.js:223:157 ) で Object.additive ( http://localhost/PT/assets/js/angular.min.js:222:493 ) でObject.relational ( http://localhost/PT/assets/js/angular.min.js:222:328 ) で Object.equality ( http://localhost/PT/assets/js/angular.min.js:222 ) :153

4

0 に答える 0