raychenfj / ion-multi-picker

Multi Item Picker - An Ionic Custom Multi Picker Component
https://raychenfj.github.io/ion-multi-picker/
Other
236 stars 103 forks source link

请问运行的时候报这个错应该怎么解决? #65

Closed daisty closed 6 years ago

daisty commented 7 years ago

Unhandled Promise rejection: Template parse errors: Can't bind to 'multiPickerColumns' since it isn't a known property of 'ion-multi-picker'.

yourappsgeek commented 7 years ago

I'm facing the same issue too even though, I added it to app module

raychenfj commented 7 years ago

Hi @daisty @yourappsgeek

I can't reproduce this issue myself, so can you provide your version info and code snippet ?

It will be great if you can create a repo to reproduce it.

roaugusto commented 6 years ago

Hey guy, I'm facing the same issue too. But I did two things that worked for me.

1. I'm using the Ionic Lazy Loading, so I needed to add the "MultiPickerModule module" to the specific module.ts. Ex:

import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { StartedPage } from './started';

import { MultiPickerModule } from 'ion-multi-picker';

@NgModule({
  declarations: [
    StartedPage,
  ],
  imports: [
    IonicPageModule.forChild(StartedPage),
    MultiPickerModule    
  ],
})
export class StartedPageModule {}
  1. I needed to clear browsing data in the browser. In my case, the chrome browser: image image