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
import { OnInit } from '@angular/core';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With