我有一个只接受数字的文本字段。因此,当我输入值时,输入的值清晰可见。我不希望用户在文本字段中看到输入的值。 总体而言,该文本字段应为数字类型,并使用掩码作为密码点。
预期结果
实际结果
答案 0 :(得分:1)
请使用输入标签。
<input type="password">
答案 1 :(得分:1)
switchMap()
...
switchMap(() => {
const result$ = this.exampleDatabase!.getRepoIssues(this.sort.active, this.sort.direction, this.paginator.pageIndex);
timer(100).pipe(takeUntil(result$)).subscribe(t => this.isLoadingResults = true);
}),
...
我希望它有用。