title: cannot find OnInit in typescript during implementation
body: <p>I am working on a sample project with a loginComponent, I need to implement OnInit in my class when i try to add the OnInit i am getting the following error </p>
  
  <blockquote>
    <p>[ts] cannot find OnInit</p>
  </blockquote>
  
  <p>Here is my code </p>
  
  <pre><code>export class loginComponent implements OnInit{
  
   ngOnInit():all{
  
      }
  }
  </code></pre>
  
  <p>How to solve this issue </p>
  
  <p>Thanks in advance</p>