no value accessor for form control with unspecified name attribute code example

Example 1: No value accessor for form control with unspecified name attribut

I fixed this error by adding the name="fieldName" ngDefaultControl 
attributes to the element that carries the [(ngModel)] attribute.

Example 2: ERROR Error: No value accessor for form control with unspecified name attribute

Add ngDefaultControl attribute to the element that carries the [(ngModel)] attribute.

Example 3: More than one custom value accessor matches form control with unspecified name attribute

The problem here is: the ngx mask and angular material datepicker combined, they cannot be combined!
It is a limitation of Angular

<div class="form-group">
    <label class="control-label col-lg-2 text-right">Birthday</label>
    <div class="col-lg-4">
        <input type="text" class="form-control" formControlName="birthday" placeholder="MM/DD/YYYY"  mask="00/00/0000" autocomplete="off" bsDatepicker>
    </div>
</div>