angular - Type Object is not generic when making build using ng build --prod -


i have following declaration in component class formerrors:object;

while using ng build --prod, throws type 'object' not generic.

but every things working in run time compilation, using ng serve

and have used formerrors below in template

   <div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback required" [ngclass]="{'has-error':formerrors?.country}">            <input class="form-control has-feedback-left" name="country" [(ngmodel)]="customer.country" placeholder="country" type="text">            <span class="fa fa-map-marker form-control-feedback left" aria-hidden="true"></span>            <span class="help-block" *ngif="formerrors?.country">{{formerrors?.country[0]}}</span>          </div>


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -