摘要: The "any" type can be very useful, especially when adding types to an existing JavaScript codebase, but it can also lead to lots of runtime errors, as 阅读全文
posted @ 2019-01-21 21:17 Zhentiw 阅读(373) 评论(0) 推荐(0)
摘要: Very differently to AngularJS (v1.x), Angular now has a hierarchical dependency injector. That allows to specify service definitions as well as the se 阅读全文
posted @ 2019-01-21 16:53 Zhentiw 阅读(1053) 评论(0) 推荐(0)
摘要: In this lesson we’ll learn how to import widgets we’ve created in other files & use them in our project. We'll also look at how to create dynamic prop 阅读全文
posted @ 2019-01-21 16:46 Zhentiw 阅读(925) 评论(0) 推荐(0)
摘要: When we create a Service, Angluar CLI will helps us to add: It only create a instance in root dependency tree. If there is no reference to use this pr 阅读全文
posted @ 2019-01-21 16:28 Zhentiw 阅读(230) 评论(0) 推荐(0)
摘要: We usually think of types as something that can define a single layer of an object: with an interface we normally specify a list of a few properties a 阅读全文
posted @ 2019-01-21 02:57 Zhentiw 阅读(385) 评论(0) 推荐(0)