上一页 1 ··· 399 400 401 402 403 404 405 406 407 ··· 497 下一页
摘要: 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 阅读(217) 评论(0) 推荐(0)
摘要: The application structure: in app.module.ts: components/home/home.module.ts: 阅读全文
posted @ 2016-09-19 18:16 Zhentiw 阅读(498) 评论(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 阅读(453) 评论(0) 推荐(0)
摘要: 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 阅读(176) 评论(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 阅读(751) 评论(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 阅读(557) 评论(0) 推荐(0)
摘要: In order to resolve a dependency, Angular’s DI uses type annotations. To make sure these types are preserved when transpiled to ES5, TypeScript emits 阅读全文
posted @ 2016-09-17 03:31 Zhentiw 阅读(338) 评论(0) 推荐(0)
摘要: This lesson discusses when and how to add dependencies, resolved by Angular’s DI, to factory providers. The example used in this lesson builts upon th 阅读全文
posted @ 2016-09-17 03:30 Zhentiw 阅读(274) 评论(0) 推荐(0)
摘要: In this lesson, we discuss how and when to use factory providers, to enable dependencies that shouldn’t be available to Angular’s DI. If you have this 阅读全文
posted @ 2016-09-16 19:42 Zhentiw 阅读(290) 评论(0) 推荐(0)
摘要: In this lesson, we’re going to take a look at how add a class to the providers property of a component creates an actual providers. We’ll learn what a 阅读全文
posted @ 2016-09-16 19:34 Zhentiw 阅读(458) 评论(0) 推荐(0)
上一页 1 ··· 399 400 401 402 403 404 405 406 407 ··· 497 下一页