Angular use fragment identifier to implement single page application.
因为是single page,不回重新载入新页面,所以我们的js的object也一直存在与memory中。
这样,我们就可以很容易的在各个页面之间交换数据了。
we can share data and services across the pages. 只要这个service是singleton就可以跨页面分享数据了。
Customer Services:
使用自定义服务我们可以