Categoría: Files

What Is The Use Of Package Json In Angular?

Since we require the at the time the project loads initially. So for that, we need to call the getUsers() method inside ngOnInit() built-in method in Angular. Because ngOnInit() is called immediately as the project loads. Since the GET Request is going to return Users Object in form of an array. So, we declare an