NGX-虚拟键盘 Angular 6 抛出错误
NGX-Virtual Keyboard Angular 6 throws error
你好我想实现虚拟键盘我已经添加到模块并包含在我的html但是上面的插件给我错误可以有人帮助。我也包含在导入模块中数组也是。
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-virtual-keyboard 的文档未更新,演示应用程序也无法运行。
这是 9 个月前发布的,之后没有任何更新
我建议你使用 ngx material 键盘。
它将提供自定义布局和许多其他内容。
你可以参考这个link ngx-material-keyboard
希望对您有所帮助。
你好我想实现虚拟键盘我已经添加到模块并包含在我的html但是上面的插件给我错误可以有人帮助。我也包含在导入模块中数组也是。
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-virtual-keyboard 的文档未更新,演示应用程序也无法运行。
这是 9 个月前发布的,之后没有任何更新
我建议你使用 ngx material 键盘。
它将提供自定义布局和许多其他内容。
你可以参考这个link ngx-material-keyboard
希望对您有所帮助。