1

我是 ionic 3 的新手。我们正在使用签名标签,但出现错误:

  1. nav-controller-base.js:88 导航失败:模板解析错误:'signature-pad' 不是已知元素:1. 如果 'signature-pad' 是 Angular 组件,则验证它是否是该模块的一部分。2. 如果 'signature-pad' 是一个 Web 组件,则将 'CUSTOM_ELEMENTS_SCHEMA' 添加到该组件的 '@NgModule.schemas' 以抑制此消息

ionic info
Cordova CLI: 6.3.0 
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.0.0
Xcode version: Not installed

 <ion-col>
         <signature-pad   minWidth=2 canvasWidth=400 canvasHeight=200      backgroundColor='#f6fbff'penColor= '#666a73'(onBeginEvent)="drawStart()" (onEndEvent)="drawComplete()">
      </signature-pad>
 </ion-col>


app.module.ts
  @NgModule({
      declarations: [
        MyApp,
        HomePage,
        SignaturePading
      ],
      imports: [
        BrowserModule,
        IonicModule.forRoot(MyApp),
        SignaturePadModule
      ],
      bootstrap: [IonicApp],
      entryComponents: [
        MyApp,
        HomePage,
        SignaturePading
      ],
      providers: [
        StatusBar,
        SplashScreen,
        {provide: ErrorHandler, useClass: IonicErrorHandler}
      ]
    })
4

0 回答 0