Skip to content

Commit

Permalink
Merge pull request #6 from cs-worcester-cs-448-sp-2019/Left-Nav-Bar
Browse files Browse the repository at this point in the history
re-adding components which were part of nav bar including routing module

@cs-worcester-cs-448-sp-2019/coders-without-borders
  • Loading branch information
kwurst authored Apr 25, 2019
2 parents fa3d261 + 111b22d commit f32177e
Show file tree
Hide file tree
Showing 21 changed files with 258 additions and 3 deletions.
28 changes: 28 additions & 0 deletions ampath-simple-app/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
{
path:'hiv-care-lib',
loadChildren:'./hiv-care-lib/hiv-care-lib.module#HivCareLibModule'
},
{
path:'patient-search',
loadChildren:'./patient-search/patient-search.module#PatientSearchModule'
},
{
path:'patients-program-enrollment',
loadChildren:'./patients-program-enrollment/patients-program-enrollment.module#PatientsProgramEnrollmentModule'
},
{
path: '',
redirectTo: '',
pathMatch: 'full'
}
];

@NgModule({
imports: [ RouterModule.forRoot(routes)],
exports: [ RouterModule]
})
export class AppRoutingModule {}
3 changes: 1 addition & 2 deletions ampath-simple-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import {MatIconModule} from '@angular/material/icon';
import {MatSidenavModule} from '@angular/material/sidenav';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

import { AppRoutingModule } from './app-routing.module';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { LeftNavBarComponent } from './left-nav-bar/left-nav-bar.component';

@NgModule({
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
clinic-flow works!
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { ClinicFlowComponent } from './clinic-flow.component';

describe('ClinicFlowComponent', () => {
let component: ClinicFlowComponent;
let fixture: ComponentFixture<ClinicFlowComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ClinicFlowComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(ClinicFlowComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-clinic-flow',
templateUrl: './clinic-flow.component.html',
styleUrls: ['./clinic-flow.component.css']
})
export class ClinicFlowComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ClinicFlowComponent } from './clinic-flow/clinic-flow.component';

const routes: Routes = [
{
path:'',
component: ClinicFlowComponent
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class HivCareLibRoutingModule { }
14 changes: 14 additions & 0 deletions ampath-simple-app/src/app/hiv-care-lib/hiv-care-lib.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { HivCareLibRoutingModule } from './hiv-care-lib-routing.module';
import { ClinicFlowComponent } from './clinic-flow/clinic-flow.component';

@NgModule({
declarations: [ClinicFlowComponent],
imports: [
CommonModule,
HivCareLibRoutingModule
]
})
export class HivCareLibModule { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PatientSearchComponent } from './patient-search.component';

const routes: Routes = [
{
path:'',
component: PatientSearchComponent
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class PatientSearchRoutingModule { }
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
patient-search works!
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { PatientSearchComponent } from './patient-search.component';

describe('PatientSearchComponent', () => {
let component: PatientSearchComponent;
let fixture: ComponentFixture<PatientSearchComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PatientSearchComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(PatientSearchComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-patient-search',
templateUrl: './patient-search.component.html',
styleUrls: ['./patient-search.component.css']
})
export class PatientSearchComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
14 changes: 14 additions & 0 deletions ampath-simple-app/src/app/patient-search/patient-search.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { PatientSearchRoutingModule } from './patient-search-routing.module';
import { PatientSearchComponent } from './patient-search.component';

@NgModule({
declarations: [PatientSearchComponent],
imports: [
CommonModule,
PatientSearchRoutingModule
]
})
export class PatientSearchModule { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PatientsProgramEnrollmentComponent } from './patients-program-enrollment.component';

const routes: Routes = [
{
path:'',
component: PatientsProgramEnrollmentComponent
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class PatientsProgramEnrollmentRoutingModule { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
patients-program-enrollment works!
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { PatientsProgramEnrollmentComponent } from './patients-program-enrollment.component';

describe('PatientsProgramEnrollmentComponent', () => {
let component: PatientsProgramEnrollmentComponent;
let fixture: ComponentFixture<PatientsProgramEnrollmentComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PatientsProgramEnrollmentComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(PatientsProgramEnrollmentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-patients-program-enrollment',
templateUrl: './patients-program-enrollment.component.html',
styleUrls: ['./patients-program-enrollment.component.css']
})
export class PatientsProgramEnrollmentComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { PatientsProgramEnrollmentRoutingModule } from './patients-program-enrollment-routing.module';
import { PatientsProgramEnrollmentComponent } from './patients-program-enrollment.component';

@NgModule({
declarations: [PatientsProgramEnrollmentComponent],
imports: [
CommonModule,
PatientsProgramEnrollmentRoutingModule
]
})
export class PatientsProgramEnrollmentModule { }
11 changes: 10 additions & 1 deletion ampath-simple-app/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
/* You can add global styles to this file, and also import other style files */
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
@import "~@angular/material/prebuilt-themes/pink-bluegrey.css";


body {
font-family: Roboto, Arial, sans-serif;
}

p {
text-align: center;
}

0 comments on commit f32177e

Please sign in to comment.