Closed marciomsm closed 7 years ago
have you imported Ng2CompleterModule
in your AppModule
?
@oferh yes, I imported.
import { Ng2CompleterModule } from 'ng2-completer';
Just a thing that I forgot to say, I am getting these erros in my unit test.
Thank you very much for your quick answer. I really appreciate it.
@oferh I discovered how to fix this problem.
On app.component.spec.ts we need to add CUSTOM_ELEMENTS_SCHEMA
.
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './../app.component';
import { RouterTestingModule } from '@angular/router/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
describe('AppComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
declarations: [AppComponent],
imports: [RouterTestingModule]
});
TestBed.compileComponents();
});
I am getting these erros bellow. Does anyone know what I need to do to fix it?
Here is my code:
Thanks.