如何在Ionic3中使用签名板?

时间:2017-05-25 07:35:02

标签: angular ionic3 signaturepad

我是离子3的新手。我们正在使用签名标签我们正在解决错误:

  1. nav-controller-base.js:88无法导航:模板解析错误:     'signature-pad'不是已知元素:      1.如果'signature-pad'是Angular组件,则验证它是否是此模块的一部分。      2.如果'signature-pad'是Web组件,则将'CUSTOM_ELEMENTS_SCHEMA'添加到此'@ NgModule.schemas'中 要禁止此消息的组件
  2. 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}
          ]
        })
    

0 个答案:

没有答案