错误保存数据google place autocomplete Angular 2

时间:2017-09-12 01:20:48

标签: javascript mongodb angular google-places-api angular2-forms

尝试使用Google地方自动填充功能保存数据时出错。 这个错误: 未捕获错误:无法分配给引用或变量!

     </div><form #formEndereco="ngForm" (ngSubmit)="onSubmit()">
     <select class="form-control"  [(ngModel)]="options.componentRestrictions.country" name="options.componentRestrictions.country" >
    <option *ngFor="let country of CountryCodes" [value]="country.Code">{{country.Name}}</option>
</select>

    <table id="address">
      <tr>
        <td class="label">Street</td>

        <td class="wideField" colspan="2"><input class="field" id="route"
              #street=ngModel [(ngModel)] = "address.street" name="street"></td>

      </tr>
</table>
   <input type="submit" value="{{titulo}}" class="btn btn-success"/>
    </form>

0 个答案:

没有答案