Iron Router,使用 map() 的优势?

Iron Router, advantage of using map()?

在最近的文档中,例如 github 上的 Discover Meteor 一书和 Iron Router 指南,每条路线都使用 Router.route。但是在 Router.map() 中使用 this.route 定义路由是很常见的。选择一种方式而不是另一种方式有什么真正的区别或理由吗?

Router.map 是 pre-1.0 API 的一部分。虽然在撰写本文时仍然有效,但将来可能会被弃用。我强烈建议遵循 official docs.

当前版本中的任何内容