How to use onBlur event on Angular2?

Use (eventName) for while binding event to DOM, basically () is used for event binding. Also use ngModel to get two way binding for myModel variable. Markup Code Demo Alternative(not preferable) Demo For model driven form to fire validation on blur, you could pass updateOn parameter. Design Docs

d3.scale.category20 is too smart for me

Can anybody explain to me why these two expressions return different values… … in the following context Working example… Expand snippet The user agent reported in my system is Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 I kind of get the above behaviour but this is very strange… Why is this… … Read more