Angular NGX虚拟键盘角度6抛出错误
大家好,我想实现虚拟键盘,我已经添加到模块中,包含在我的html中,但是上面的插件给了我一些帮助。我还包含在导入数组中的模块中Angular NGX虚拟键盘角度6抛出错误,angular,typescript,angular6,Angular,Typescript,Angular6,大家好,我想实现虚拟键盘,我已经添加到模块中,包含在我的html中,但是上面的插件给了我一些帮助。我还包含在导入数组中的模块中 Uncaught (in promise): Error: Unexpected value 'NgxVirtualKeyboardModule' imported by the module 'ProfileModule'. Please add a @NgModule annotation. Error: Unexpected value
Uncaught (in promise): Error: Unexpected value 'NgxVirtualKeyboardModule'
imported by the module 'ProfileModule'. Please add a @NgModule annotation.
Error: Unexpected value 'NgxVirtualKeyboardModule' imported by the module
'ProfileModule'. Please add a @NgModule annotation.
这是ts部分
import { NgxVirtualKeyboardModule } from 'ngx-virtual-keyboard';
export const profileRoutes: Routes = [
{
path: '',
component: ProfileComponent,
}
];
@NgModule({
imports: [
CommonModule,
NgxVirtualKeyboardModule
],
这是html部分
<input type="text" value=""
[ngx-virtual-keyboard]="true"
[ngx-virtual-keyboard-layout]="layout"
[ngx-virtual-keyboard-disabled]="false"
/>
ngx虚拟键盘的文档未更新,演示应用程序也不工作 这是9个月前发布的,没有任何更新 我建议您使用ngx材质键盘。 这将提供自定义布局和许多其他东西 你可以参考这个链接
希望这能对您有所帮助。您能同时添加相关代码(即您的模块文件)吗?当然我会添加,我已经在上面添加了ts和html,您能看一下@User184994吗?如果我的输入框在底部,这个键盘会显示并隐藏,有什么方法可以设置样式并更改键盘位置吗?