angular - NGX-Virtual Keyboard Angular 6 throws error
问题描述
Hello all i want to implement virtual key board I have added to module & included in my html but the above plugin is giving me error can some one help .I have also included in the module in imports array as well.
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.
This is the ts part
import { NgxVirtualKeyboardModule } from 'ngx-virtual-keyboard';
export const profileRoutes: Routes = [
{
path: '',
component: ProfileComponent,
}
];
@NgModule({
imports: [
CommonModule,
NgxVirtualKeyboardModule
],
This is the html part
<input type="text" value=""
[ngx-virtual-keyboard]="true"
[ngx-virtual-keyboard-layout]="layout"
[ngx-virtual-keyboard-disabled]="false"
/>
解决方案
ngx-virtual-keyboard 的文档未更新,演示应用程序也无法正常工作。
这是 9 个月前发布的,之后没有任何更新
我会建议你使用ngx 材质键盘。
它将提供自定义布局和许多其他东西。
你可以参考这个链接ngx-material-keyboard
希望这会帮助你。
推荐阅读
- javascript - 通过不使用两个 for 循环来循环对象
- reactjs - 使用 vercel 部署 React 项目时出错
- c# - AdobeIO OAuth:“oauth 状态丢失或无效。”
- mpi - 使用 MPI_Gatherv 处理结构向量时如何设置位移?
- java - 方法withConverter(Converter
) 在 Binder.BindingBuilder 类型中 不适用于论点 - javascript - 输入框格式名称
- javascript - 如何将数据从组件传递到 HOC 组件
- java - 为什么我没有在 catch 块中抛出异常?
- deep-learning - 所有值都替换为 pytorch 中的池最大值
- javascript - Safari 页面滚动卡在可滚动 div 的底部