Posts

Showing posts with the label There is no directive with "exportAs" set to "ngForm"

There is no directive with "exportAs" set to "ngForm" in Angular 2.0 or 4.0

Error got is : There is no directive with "exportAs" set to "ngForm"  for below html. <div class="container">     <form #ProdForm="ngForm" (ngSubmit)="onSubmit($event)" autocomplete="off">         <div class="form-horizontal">             <h3> Product Form</h3>             <div class="form-group">                 <label for="inputText" class="control-label col-xs-2">Number</label>                 <div class="col-xs-10">                     <input type="number" class="form-control" id="txtCustomerName" placeholder="Product Number" required [(ngModel)]="editProduct.id">                 </div>             </div> ...