Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot find OnInit in typescript during implementation

Tags:

angular

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

[ts] cannot find OnInit

Here is my code

export class loginComponent implements OnInit{

 ngOnInit():all{

    }
}

How to solve this issue

Thanks in advance

like image 392
skid Avatar asked Nov 30 '22 22:11

skid


1 Answers

import { OnInit } from '@angular/core';
like image 187
kdev Avatar answered Dec 10 '22 02:12

kdev