Skip to content

Commit

Permalink
修正格式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yanni4night committed Dec 9, 2014
1 parent 838a063 commit 671c511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/bilingual_guides/routing/redirection.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ the redirection, you should either use the `afterModel` or the `redirect` hook.
receive the resolved model as the first parameter and the transition as the second one,
and thus function as aliases. (In fact, the default implementation of `afterModel` just calls `redirect`.)

如果需要从当前模型中获取重定向的信息来决定跳转到哪里,可以使用`afterModel``redirect`这两个钩子来实现。`afterModel``redirect`的第一个参数都是路由的模型,过渡对象作为第二个参数,两个钩子本质是一样的。(`afterModel`钩子的缺省实现只是对`redirect`钩子的调用。
如果需要从当前模型中获取重定向的信息来决定跳转到哪里,可以使用`afterModel``redirect`这两个钩子来实现。`afterModel``redirect`的第一个参数都是路由的模型,过渡对象作为第二个参数,两个钩子本质是一样的。(实际上`afterModel`钩子的缺省实现只是对`redirect`钩子的调用

```javascript

Expand Down
2 changes: 1 addition & 1 deletion source/guides/routing/redirection.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ App.IndexRoute = Ember.Route.extend({

### 在获取模型之后

如果需要从当前模型中获取重定向的信息来决定跳转到哪里,可以使用`afterModel``redirect`这两个钩子来实现。`afterModel``redirect`的第一个参数都是路由的模型,过渡对象作为第二个参数,两个钩子本质是一样的。(`afterModel`钩子的缺省实现只是对`redirect`钩子的调用。
如果需要从当前模型中获取重定向的信息来决定跳转到哪里,可以使用`afterModel``redirect`这两个钩子来实现。`afterModel``redirect`的第一个参数都是路由的模型,过渡对象作为第二个参数,两个钩子本质是一样的。(实际上`afterModel`钩子的缺省实现只是对`redirect`钩子的调用

```javascript

Expand Down

0 comments on commit 671c511

Please sign in to comment.