我正在尝试使用自定义电话号码输入控件添加一个表单字段。我使用了https://material.angular.io/components/form-field/examples中的电话示例。
这是代码:
<mat-form-field>
<example-tel-input placeholder="Phone number" required></example-tel-input>
<mat-icon matSuffix>phone</mat-icon>
<mat-hint>Include area code</mat-hint>
Run Code Online (Sandbox Code Playgroud)
import {FocusMonitor} from '@angular/cdk/a11y';
import {coerceBooleanProperty} from '@angular/cdk/coercion';
import {Component, ElementRef, Input, OnDestroy} from '@angular/core';
import {FormBuilder, FormGroup} from '@angular/forms';
import {MatFormFieldControl} from '@angular/material';
import {Subject} from 'rxjs';
/** @title Form field with custom telephone number input control. */
@Component({
selector: 'form-field-custom-control-example',
templateUrl: 'form-field-custom-control-example.html',
styleUrls: ['form-field-custom-control-example.css'],
})
export class FormFieldCustomControlExample {}
/** Data structure for holding telephone number. */
export class MyTel {
constructor(public area: string, …Run Code Online (Sandbox Code Playgroud) 错误:原因:zip 文件为空
你能帮我解决这个问题吗?我现在开始学习android studio。如果您能给我具体的指示,一步一步做什么,这将对我有很大帮助。
我还需要说明,如何创建一个新项目并运行它,我想看看模拟器..