Empty functions in Javascript

I don’t know what jsLint thinks but if this is a problem and you need a solution then you can do something like the following: Update : I think, Bergi‘s guess is right because, on the jslint site in the Required Blocks section : JSLint expects that if, while, do and for statements will be made with blocks {that is, with statements enclosed … Read more

What does `node –harmony` do?

Typing man node has this on the harmony flag: So –harmony is a shortcut to enable all the harmony features (e.g. –harmony_scoping, –harmony_proxies, etc.) From this blog post, it seems harmony enables new ECMAScript 6 features in the language. The reason your file won’t run without harmony is because app.js is probably using non-backward compatible … Read more

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