valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 585 forks source link

RC6 compatibility #391

Open mmaryo opened 8 years ago

mmaryo commented 8 years ago

It seems not compatible with Angular 2 RC6

When I add declaration in app.module.ts :

(index):32 Error: Error: Unexpected value 'undefined' declared by the module 'AppModule'(…)

` import {SELECT_DIRECTIVES} from "ng2-select";

@NgModule({
// module dependencies
imports: [ BrowserModule,
    FormsModule,
    HttpModule,
    routing,
    Ng2BootstrapModule
],

// components and directives
declarations: [
    MODAL_DIRECTIVES,
    SELECT_DIRECTIVES,
    .....
],

// root component
bootstrap: [ AppComponent ],

// services
providers: [
    { provide: LocationStrategy, useClass: HashLocationStrategy },
    ApiService,
    ...
]

}) export class AppModule {} `

ghost commented 8 years ago

+1 on this, I'm using this component and we'll need an update to use it in RC6 version

optimistex commented 6 years ago

New life the component is there: https://github.com/optimistex/ng2-select-ex