diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 9e3a9a3..9f558ea 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -23,6 +23,7 @@ import { InterviewComponent } from './interview/interview.component';
import { InterviewGridComponent } from './interview-grid/interview-grid.component';
import { DedaloService } from './dedalo.service';
import { HideMarkers } from './pipe';
+import { TextComponent } from './text/text.component';
@NgModule({
@@ -38,6 +39,7 @@ import { HideMarkers } from './pipe';
InterviewComponent,
InterviewGridComponent,
HideMarkers,
+ TextComponent,
],
imports: [
BrowserModule,
diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html
index fce1b1a..b46fdba 100644
--- a/src/app/home/home.component.html
+++ b/src/app/home/home.component.html
@@ -1,2 +1,4 @@
+
+
diff --git a/src/app/text/text.component.css b/src/app/text/text.component.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/text/text.component.html b/src/app/text/text.component.html
new file mode 100644
index 0000000..ff5745d
--- /dev/null
+++ b/src/app/text/text.component.html
@@ -0,0 +1,5 @@
+
+
+
diff --git a/src/app/text/text.component.spec.ts b/src/app/text/text.component.spec.ts
new file mode 100644
index 0000000..d91002a
--- /dev/null
+++ b/src/app/text/text.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { TextComponent } from './text.component';
+
+describe('TextComponent', () => {
+ let component: TextComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ TextComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(TextComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/text/text.component.ts b/src/app/text/text.component.ts
new file mode 100644
index 0000000..2748829
--- /dev/null
+++ b/src/app/text/text.component.ts
@@ -0,0 +1,27 @@
+import { Component, OnInit, Input, Inject, LOCALE_ID} from '@angular/core';
+import { PageService } from '../page.service';
+import { PageItem } from '../page';
+
+@Component({
+ selector: 'app-text',
+ templateUrl: './text.component.html',
+ styleUrls: ['./text.component.css']
+})
+export class TextComponent implements OnInit {
+
+ @Input() slug:string;
+ pages:PageItem[];
+
+ constructor(
+ private pageService: PageService,
+ @Inject(LOCALE_ID) protected localeId: string
+ ) { }
+
+ ngOnInit() {
+ this.pageService.getPage(this.slug)
+ .subscribe(data => {
+ this.pages = data;
+ });
+ }
+
+}