Angular2 六:routing 页面的跳转和传值

什么,想复习一下之前的课程, 来点我啊   更多文章

官网上有这样一段课程引导,很好,你想看,那我就拿过来给你看看:


We received new requirements for our Tour of Heroes application:

Add aDashboardview.

Navigate between theHeroesandDashboardviews.

Clicking on a hero in either view navigates to a detail view of the selected hero.

Clicking adeep linkin an email opens the detail view for a particular hero.

When we’re done, users will be able to navigate the app like this:


图1

简单点来说就是,当我们点击列表中的某个英雄的时候,
跳到一个新的界面来展示我们所点击的英雄的详细信息,
想了解跟多有关跳转和路由的功能,请戳这里
就这么多吧,好了


github上有整个demo的项目,可以点击这个下载运行
https://github.com/ITliuxiangyu/Angular2-HeroesDemo

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容