摘要: Components that you use across multiple applications need to follow a module pattern that keeps them separate from your application logic. This will a 阅读全文
posted @ 2016-09-19 19:59 Zhentiw 阅读(214) 评论(0) 推荐(0)
摘要: The application structure: in app.module.ts: components/home/home.module.ts: 阅读全文
posted @ 2016-09-19 18:16 Zhentiw 阅读(496) 评论(0) 推荐(0)
摘要: First, how to use a build in pipe: Then how to create a custom pipe: Notice here, we use: The reason doing this is because sort() is mutate opreation, 阅读全文
posted @ 2016-09-19 03:56 Zhentiw 阅读(448) 评论(0) 推荐(0)