making components update

This commit is contained in:
Alex Wolfe 2015-04-22 07:22:30 -07:00
parent 345a013156
commit 69b6bf969b
1 changed files with 68 additions and 66 deletions

View File

@ -15,7 +15,8 @@
Given a bootstrapping template with a <code>&lt;parent&gt;</code> tag in the body, you can create a parent Given a bootstrapping template with a <code>&lt;parent&gt;</code> tag in the body, you can create a parent
component that uses a <code>&lt;child&gt;</code> component like so: component that uses a <code>&lt;child&gt;</code> component like so:
pre.prettyprint.linenums.lang-javascript .code-box
pre.prettyprint.linenums.lang-javascript(data-name="es5")
code. code.
//ES5 //ES5
function ParentComponent() { function ParentComponent() {
@ -33,7 +34,7 @@
}) })
]; ];
pre.prettyprint.linenums.lang-typescript pre.prettyprint.linenums.lang-typescript(data-name="typescript")
code. code.
//TypeScript //TypeScript
@Component({ @Component({
@ -56,7 +57,8 @@
p You then just need to write the <code>ChildComponent</code> class to make it work: p You then just need to write the <code>ChildComponent</code> class to make it work:
pre.prettyprint.linenums.lang-javascript .code-box
pre.prettyprint.linenums.lang-javascript(data-name="es5")
code. code.
//ES5 //ES5
function ChildComponent() { function ChildComponent() {
@ -71,7 +73,7 @@
}) })
]; ];
pre.prettyprint.linenums.lang-typescript pre.prettyprint.linenums.lang-typescript(data-name="typescript")
code. code.
//TypeScript //TypeScript
@Component({ @Component({