I received a warning from TS Lint that I need to implement OnInit interface and provided me with a link to this page : https://angular.io/docs/ts/latest/guide/style-guide.html#!#09-01
What is the difference between onInit and ngOnInit. Both worked for me .
Why is ok to use ngOnInit and not onInit which is much simple to write?