摘要: Learn how to add, remove and test for CSS classes using the classList API. It's more powerful than using className and doesn't require any dependencie 阅读全文
posted @ 2016-09-18 03:00 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: When using provider string tokens, there’s a chance they collide with other third-party tokens. Angular has with the concept of opaque tokens, that al 阅读全文
posted @ 2016-09-18 02:52 Zhentiw 阅读(748) 评论(0) 推荐(0)
摘要: Dependecies aren’t always objects created by classes or factory functions. Sometimes, all we really want is inject a simple value, which can be a prim 阅读全文
posted @ 2016-09-18 02:24 Zhentiw 阅读(553) 评论(0) 推荐(0)