import { Component } from '@angular/core';
import * as e from 'cors';
declare function click_fun():any;
@Component({
  selector: 'app-register',
  templateUrl: './register.component.html',
  styleUrls: ['./register.component.css']
})
export class RegisterComponent {
  ngOnInit(): void{
  }
  click_fun(){
  
    alert('Welcome')
  }
}
"""How to call in JavaScript file that has all the code for database connection, storing data in MONGODB and credential authentication in click_fun()."""

