From 6f42e303f94d657ad42e74e88a4c06d18896112d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20F=C3=A2ciu?= Date: Wed, 7 Sep 2016 22:05:54 +0300 Subject: [PATCH] Fixing demo page --- demo/components/file-upload-section.ts | 73 ++++++++++++-------------- 1 file changed, 33 insertions(+), 40 deletions(-) diff --git a/demo/components/file-upload-section.ts b/demo/components/file-upload-section.ts index 61efd9b..fe7f070 100644 --- a/demo/components/file-upload-section.ts +++ b/demo/components/file-upload-section.ts @@ -1,8 +1,5 @@ import {Component} from '@angular/core'; -import {SimpleDemoComponent} from './file-upload/simple-demo'; - -let name = 'File Upload'; let doc = require('../../components/file-upload/readme.md'); let tabDesc:Array = [ @@ -14,39 +11,7 @@ let tabDesc:Array = [ } ]; -let tabsContent:string = ``; -tabDesc.forEach((desc:any) => { - tabsContent += ` - -
- - <{{desc.heading.toLowerCase()}}-demo *ngIf="currentHeading === '{{desc.heading}}'"> - -
- -
- - -
-
{{desc.html}}
-
-
- -
-
{{desc.ts}}
-
-
- -
-
{{desc.js}}
-
-
-
-
-
-
- `; -}); +// <{{desc.heading.toLowerCase()}}-demo *ngIf="currentHeading === '{{desc.heading}}'"> @Component({ selector: 'file-upload-section', @@ -54,25 +19,53 @@ tabDesc.forEach((desc:any) => {
+ +
- {{tabsContent}} + +
+ +
+ + +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+

API

-
{{doc}}
+
- ` + `, }) export class FileUploadSectionComponent { + public name:string = 'File Upload'; public currentHeading:string = 'Simple'; + public doc:string = doc; + public tabs:any = tabDesc; public select(e:any):void { if (e.heading) { this.currentHeading = e.heading; } } -} +} \ No newline at end of file