Ocorre que estou tentando utilizar um módulo e não estou conseguindo da esse erro abaixo:
Uncaught Error: Unexpected directive 'BordaCreateComponent' imported by the module 'AppModule'. Please add a @NgModule annotation. at syntaxError
Meu App.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { UsuarioRoutingModule } from './usuario/usuario-routing.module';
import { UsuarioModule } from './usuario/usuario.module';
import { UsuarioLoginComponent } from './usuario/usuario-login/usuario-login.component';
import { BordaCreateComponent } from './borda/borda-create/borda-create.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {HttpModule} from '@angular/http';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
NgbModule.forRoot(),
BordaCreateComponent
],
exports: [
AppComponent,
FormsModule,
ReactiveFormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Meu Borda.module.ts
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AppModule } from '../app.module';
import { BordaRoutingModule } from './borda-routing.module';
import { BordaListComponent } from './borda-list/borda-list.component';
import { BordaCreateComponent } from './borda-create/borda-create.component';
@NgModule({
imports: [
CommonModule,
BordaRoutingModule,
AppModule
],
exports: [
BordaCreateComponent,
BordaListComponent
],
declarations: [BordaCreateComponent, BordaListComponent]
})
export class BordaModule { }