|
1 | 1 | import { BrowserModule } from '@angular/platform-browser';
|
2 | 2 | import { FormsModule } from '@angular/forms';
|
3 |
| -import { NgModule } from '@angular/core'; |
| 3 | +import { NgModule, Component } from '@angular/core'; |
4 | 4 | import { HttpClientModule } from '@angular/common/http';
|
| 5 | +import { routing } from './app.routing'; |
5 | 6 |
|
6 | 7 | import { AppComponent } from './app.component';
|
7 |
| -import { routing } from './app.routing'; |
8 | 8 | import { LoginComponent } from './components/login/login.component';
|
9 |
| -import { HeaderComponent } from './components/header/header.component'; |
| 9 | +import { HeadComponent } from './components/head/head.component'; |
10 | 10 | import { NewsComponent } from './components/news/news.component';
|
11 |
| -import { NavBarComponent } from './components/navBar/navBar.component' |
| 11 | +import { NavBarComponent } from './components/navBar/navBar.component'; |
| 12 | +import { FooterComponent } from './components/footer/footer.component'; |
| 13 | +import { NewsTemplateComponent } from './components/news/newsTemplate.component'; |
| 14 | +import { ShowNewsComponent } from './components/news/showNews.component'; |
| 15 | +import { HomeComponent } from './components/home/home.component'; |
| 16 | +import { UserProfile } from './components/user/userProfile.component'; |
| 17 | + |
| 18 | + |
12 | 19 |
|
13 | 20 |
|
14 | 21 | @NgModule({
|
15 |
| - declarations: [AppComponent, LoginComponent, HeaderComponent, NewsComponent, NavBarComponent], |
16 |
| - imports: [BrowserModule, FormsModule, HttpClientModule, routing], |
| 22 | + declarations: [AppComponent, LoginComponent, HeadComponent, NewsComponent, NavBarComponent, FooterComponent, NewsTemplateComponent, ShowNewsComponent, HomeComponent, UserProfile], |
| 23 | + imports: [BrowserModule, FormsModule, HttpClientModule, routing, FormsModule], |
17 | 24 | bootstrap: [AppComponent]
|
18 | 25 | })
|
19 | 26 | export class AppModule { }
|
0 commit comments