Skip to content

Commit

Permalink
feat(job): init module & page for future design
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 21, 2020
1 parent e0299f4 commit 6ba65a0
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ const routes: Routes = [
loadChildren: () =>
import('./presentation/home/home.module').then((m) => m.HomeModule),
},
{
path: 'job',
loadChildren: () =>
import('./presentation/job/job.module').then((m) => m.JobModule),
},
{
path: 'helper',
loadChildren: () =>
Expand Down
1 change: 1 addition & 0 deletions src/app/presentation/job/job.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>job works!</p>
Empty file.
24 changes: 24 additions & 0 deletions src/app/presentation/job/job.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { JobComponent } from './job.component';

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

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

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

it('should create', () => {
expect(component).toBeTruthy();
});
});
12 changes: 12 additions & 0 deletions src/app/presentation/job/job.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-job',
templateUrl: './job.component.html',
styleUrls: ['./job.component.scss'],
})
export class JobComponent implements OnInit {
constructor() {}

ngOnInit(): void {}
}
20 changes: 20 additions & 0 deletions src/app/presentation/job/job.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { JobComponent } from './job.component';
import { FormsModule } from '@angular/forms';
import { LedgeRenderModule } from '@ledge-framework/render';

import { SharedModule } from '../../shared/shared.module';

@NgModule({
declarations: [JobComponent],
imports: [
CommonModule,
FormsModule,
SharedModule,
LedgeRenderModule,
RouterModule.forChild([{ path: '', component: JobComponent }]),
],
})
export class JobModule {}

0 comments on commit 6ba65a0

Please sign in to comment.