如何更改 Auth0 Lock 中显示的标题标题?

How can I change the title heading shown in Auth0 Lock?

我想更改 Auth0 显示在锁定中的默认标题值;见下图。

您想更改哪个值?授权0?如果是,设置Auth0的值,使之成为Input(),如:

export class HeadComponent {
  @Input() Auth0; 
}

在HTML中:

 <heading-component [Auth0]="custom value"></heading-component>

假设您使用的是最新版本的 Lock(Lock 10),您可以通过 languageDictionary 对象自定义 Lock 显示的任何文本。

var options = {
  languageDictionary: {
    title: "[YOUR_TEXT_HERE]"
  },
};

查看 documentation 以了解有关如何使用此对象的更多信息。