From bc54249037a21352d31d9c5b9cc8bfcf1332574c Mon Sep 17 00:00:00 2001 From: Justin DuJardin Date: Wed, 16 Dec 2015 06:37:28 -0800 Subject: [PATCH] fix(examples): issue where demos would not load in firefox - apparently firefox cannot manage [innerText]="" style bindings. Use interpolated strings in the body of elements for now {{ yay }} --- examples/app.html | 2 +- examples/app.scss | 2 +- examples/app.ts | 10 ++++++++++ examples/components/progress_circular/basic_usage.html | 2 +- examples/components/progress_linear/basic_usage.html | 2 +- examples/components/radio/basic_usage.html | 2 +- examples/example.html | 8 +++----- 7 files changed, 18 insertions(+), 10 deletions(-) diff --git a/examples/app.html b/examples/app.html index b9c96bfd..5c3573ad 100644 --- a/examples/app.html +++ b/examples/app.html @@ -25,7 +25,7 @@

Components

-

+

{{ value.name }}

diff --git a/examples/app.scss b/examples/app.scss index a06be0e7..dcd53669 100644 --- a/examples/app.scss +++ b/examples/app.scss @@ -34,7 +34,7 @@ demos-app { font-size: rem(3.4); font-weight: 400; line-height: rem(4); - margin-bottom: 30px; + margin-bottom: rem(4); } .examples-intro { diff --git a/examples/app.ts b/examples/app.ts index 37e01bd8..4ee9410b 100644 --- a/examples/app.ts +++ b/examples/app.ts @@ -29,6 +29,16 @@ export class DemosApp { constructor(http: Http) { http.get('public/meta.json') .subscribe((res: Response) => { + // HACKS: use to filter down to a single example for testing + //let data = res.json(); + //let results = []; + //data.forEach((d) => { + // if(d.name === 'Toolbar'){ + // results.push(d); + // } + //}); + //this.meta = results; + this.meta = res.json(); console.log(this.meta); }); diff --git a/examples/components/progress_circular/basic_usage.html b/examples/components/progress_circular/basic_usage.html index 933b57f2..59226b93 100644 --- a/examples/components/progress_circular/basic_usage.html +++ b/examples/components/progress_circular/basic_usage.html @@ -45,7 +45,7 @@

Theming

[checked]="activated" (md-on-change)="toggleActivation()" aria-label="Toggle Progress Circular Indicators"> -
+
{{ activated?'On':'Off' }}
diff --git a/examples/components/progress_linear/basic_usage.html b/examples/components/progress_linear/basic_usage.html index 247b3067..b876c399 100644 --- a/examples/components/progress_linear/basic_usage.html +++ b/examples/components/progress_linear/basic_usage.html @@ -51,7 +51,7 @@

Query

[checked]="activated" (mdOnChange)="toggleActivation()" aria-label="Enable Indicators"> -
+
{{ activated ? 'On' : 'Off' }}
diff --git a/examples/components/radio/basic_usage.html b/examples/components/radio/basic_usage.html index 30bf3578..703cbb2a 100644 --- a/examples/components/radio/basic_usage.html +++ b/examples/components/radio/basic_usage.html @@ -1,5 +1,5 @@
-

Selected Value:

+

Selected Value: {{ data.group1 }}

diff --git a/examples/example.html b/examples/example.html index 3b1947a0..f05e3116 100644 --- a/examples/example.html +++ b/examples/example.html @@ -1,21 +1,19 @@
-
-
+ [ngClass]="{'show-source': showSource}">
-

+

{{ model?.name }}