上一页 1 ··· 332 333 334 335 336 337 338 339 340 ··· 477 下一页
摘要: Both what "TestBed.get" & "injector" trying to do is get service for the test component. But there is some diffenece which determined when use which. 阅读全文
posted @ 2017-10-10 19:21 Zhentiw 阅读(1725) 评论(0) 推荐(0)
摘要: When you testing Component rendering, you often needs to call: For example: You can also set auto change detection: Add to providers: Tests wit auto c 阅读全文
posted @ 2017-10-10 16:51 Zhentiw 阅读(305) 评论(0) 推荐(0)
摘要: When using Ngrx, we need to know how to test the component which has Router injected. Component: One thing we can test just for component wihtout temp 阅读全文
posted @ 2017-10-10 15:54 Zhentiw 阅读(590) 评论(0) 推荐(0)
摘要: More detail check LInk. Render Prop vs HOC: HOC version for withMouse: Problems: Indirection. We still have the same problem with indirection that we 阅读全文
posted @ 2017-10-10 00:27 Zhentiw 阅读(310) 评论(0) 推荐(0)
摘要: class Toggle extends Component { static propTypes = { defaultOn: PropTypes.bool, on: PropTypes.bool, onToggle: PropTypes.func, children: PropTypes.oneOfType([ PropTypes.func, ... 阅读全文
posted @ 2017-10-05 19:46 Zhentiw 阅读(311) 评论(0) 推荐(0)
摘要: # Why Python is Great: Namedtuples # Using namedtuple is way shorter than # defining a class manually: >>> from collections import namedtuple >>> Car = namedtup1e('Car', 'color mileage') # Our new "... 阅读全文
posted @ 2017-10-03 20:59 Zhentiw 阅读(263) 评论(0) 推荐(0)
摘要: Tf-idf, or term frequency-inverse document frequency, is a statistic that indicates how important a word is to the entire document. This lesson will e 阅读全文
posted @ 2017-10-03 20:38 Zhentiw 阅读(426) 评论(0) 推荐(0)
摘要: In this lesson, we will learn how to train a Naive Bayes classifier and a Logistic Regression classifier - basic machine learning algorithms - on JSON 阅读全文
posted @ 2017-10-03 20:23 Zhentiw 阅读(629) 评论(0) 推荐(0)
摘要: In this lesson, we will learn how to train a Naive Bayes classifier or a Logistic Regression classifier - basic machine learning algorithms - in order 阅读全文
posted @ 2017-10-03 19:20 Zhentiw 阅读(235) 评论(0) 推荐(0)
摘要: Shuffling is a common process used with randomizing the order for a deck of cards. The key property for a perfect shuffle is that each item should hav 阅读全文
posted @ 2017-10-03 18:39 Zhentiw 阅读(527) 评论(0) 推荐(0)
上一页 1 ··· 332 333 334 335 336 337 338 339 340 ··· 477 下一页