From 8216fa7cbf62ed974ff41a716ec6625e5ef23e5a Mon Sep 17 00:00:00 2001 From: nic Date: Sat, 31 Aug 2019 22:30:51 +0200 Subject: [PATCH] Update hello-world.md Copying and pasting the code into the script tab didn't work: var ractive = Ractive({ target: output, template: template, This works: var ractive = new Ractive({ target: '#target', template: '#template', --- docs/tutorials/hello-world.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/hello-world.md b/docs/tutorials/hello-world.md index f8642d4..bd7e7ed 100644 --- a/docs/tutorials/hello-world.md +++ b/docs/tutorials/hello-world.md @@ -30,9 +30,9 @@ That's not very exciting. Let's make our template more templatey – replace the Then, add some data to it, by adding a data initialisation option to our code on the script tab so that it looks like this: ```js -var ractive = Ractive({ - target: output, - template: template, +var ractive = new Ractive({ + target: '#target', + template: '#template', data: { greeting: 'Hello', name: 'world' } }); ```