fix(guide): remove html escaping from displaying-data code samples
This commit is contained in:
parent
9827bc7466
commit
111a2147c1
|
@ -40,7 +40,7 @@
|
||||||
p To see this working, create another file, <code>show-properties.ts</code>, and add the following:
|
p To see this working, create another file, <code>show-properties.ts</code>, and add the following:
|
||||||
|
|
||||||
code-tabs
|
code-tabs
|
||||||
code-pane(language="javascript" name="TypeScript" format="linenums" escape="html").
|
code-pane(language="javascript" name="TypeScript" format="linenums").
|
||||||
// TypeScript
|
// TypeScript
|
||||||
import {Component, View, bootstrap} from 'angular2/angular2';
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
})
|
})
|
||||||
@View({
|
@View({
|
||||||
template: `
|
template: `
|
||||||
<p>My name: {{ myName }}</p>
|
<p>My name: {{ myName }}</p>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
class DisplayComponent {
|
class DisplayComponent {
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
this.myName = "Alice";
|
this.myName = "Alice";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
code-pane(language="javascript" name="ES5" format="linenums" escape="html").
|
code-pane(language="javascript" name="ES5" format="linenums").
|
||||||
// ES5
|
// ES5
|
||||||
function DisplayComponent() {
|
function DisplayComponent() {
|
||||||
this.myName = "Alice";
|
this.myName = "Alice";
|
||||||
|
|
Loading…
Reference in New Issue