File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11< app-header [title] ="title "> </ app-header >
22
33< div class ="container ">
4- < app-users [users] =" users " > </ app-users >
4+ < router-outlet > </ router-outlet >
55</ div >
Original file line number Diff line number Diff line change 11import { Component } from '@angular/core' ;
2- import { USERS } from './mock-users' ;
2+
33@Component ( {
44 selector : 'app-root' ,
55 templateUrl : './app.component.html' ,
66 styleUrls : [ './app.component.css' ]
77} )
88export class AppComponent {
99 title : string = 'CONTACT MANAGER' ;
10- users = USERS ;
1110}
Original file line number Diff line number Diff line change 11import { BrowserModule } from '@angular/platform-browser' ;
22import { NgModule } from '@angular/core' ;
3+ import { HttpClientModule } from '@angular/common/http' ;
34
5+ import { UsersService } from './services/users.service' ;
46
57import { AppComponent } from './app.component' ;
68import { HeaderComponent } from './components/header/header.component' ;
79import { UsersComponent } from './components/users/users.component' ;
810import { UserCardComponent } from './components/user-card/user-card.component' ;
11+ import { AppRoutingModule } from './/app-routing.module' ;
12+ import { AboutComponent } from './components/pages/about/about.component' ;
913
1014
1115@NgModule ( {
1216 declarations : [
1317 AppComponent ,
1418 HeaderComponent ,
1519 UsersComponent ,
16- UserCardComponent
20+ UserCardComponent ,
21+ AboutComponent
1722 ] ,
1823 imports : [
19- BrowserModule
24+ BrowserModule ,
25+ HttpClientModule ,
26+ AppRoutingModule
2027 ] ,
21- providers : [ ] ,
28+ providers : [ UsersService ] ,
2229 bootstrap : [ AppComponent ]
2330} )
2431export class AppModule { }
Original file line number Diff line number Diff line change 1- export const USERS = [
1+ import { User } from './models/user' ;
2+
3+ export const USERS : User [ ] = [
24 {
35 "guid" : "60e58cc8-8a43-4d07-bba1-5a4c0e32a8ee" ,
46 "isActive" : true ,
Original file line number Diff line number Diff line change 33
44< head >
55 < meta charset ="utf-8 ">
6- < title > Blog </ title >
6+ < title > Contact Application </ title >
77 < base href ="/ ">
88
99 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
You can’t perform that action at this time.
0 commit comments