From 0e2674b514e005afac388e31279973e3081efa6f Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 17 Apr 2015 00:53:06 -0400 Subject: [PATCH 1/2] fix unit test example code --- source/guide/application.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/guide/application.md b/source/guide/application.md index b96ac6358d..ebb66a0b96 100644 --- a/source/guide/application.md +++ b/source/guide/application.md @@ -66,8 +66,14 @@ app.currentView = 'page1' ``` js // my-component.js module.exports = { + template: '{{msg}}', + data: function () { + return { + msg: 'hello!' + } + } created: function () { - this.message = 'hello!' + console.log('my-component created!') } } ``` From d09d37ce8d56bb8f0a672fe897b341d3033989c2 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 17 Apr 2015 00:55:39 -0400 Subject: [PATCH 2/2] fix vue-hackernews description --- source/guide/application.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guide/application.md b/source/guide/application.md index ebb66a0b96..5dc09b9065 100644 --- a/source/guide/application.md +++ b/source/guide/application.md @@ -114,4 +114,4 @@ describe('my-component', function () { ## 一个示例 -[Vue.js Hackernews Clone](https://github.com/yyx990803/vue-hackernews) 是一个应用的例子,它把 Browserify + Vueify 用来代码组织、Director.js 用来做路由、HackerNews 官方的 Firebase API 为后端。这不算什么特别大的应用,但它结合并展示了本页面讨论到的各方面概念。 +[Vue.js Hackernews Clone](https://github.com/yyx990803/vue-hackernews) 是一个应用的例子,它把 Webpack + vue-loader 用来代码组织、Director.js 用来做路由、HackerNews 官方的 Firebase API 为后端。这不算什么特别大的应用,但它结合并展示了本页面讨论到的各方面概念。