IT 全栈开发

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

2017-04-01  本文已影响223人  醋留香

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

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


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

上一篇 下一篇

猜你喜欢

热点阅读