Closed nobady90 closed 6 years ago
I closed the issue because I solved with the use of the ShareModule since I had more than one module that was to use the component.
It seems you need to import the component into your module,
// import NgModule
import {NgModule} from '@angular/core';
// import Select2Component
import {Select2Component} from 'angular-select2-component';
@NgModule({
// ...
// declare components
declarations: [Select2Component]
})
export class YourModule {
}
hi Godbasin, I have an error of not recognizing the tag [option] and [settings]:
I searched a bit on the net, and I already added the modules 'FormsModule', 'ReactiveFormsModule' and 'SharedModule' in my app.module.ts
what else should I include? thanks a lot