Page 1 of 1

Angular for .NET/TypeScript const adoc = require("Add Doctors"); const adddoc = require("Please Add Doctors"); const app

Posted: Sun May 15, 2022 10:14 am
by answerhappygod
Angular for .NET/TypeScript
Angular For Net Typescript Const Adoc Require Add Doctors Const Adddoc Require Please Add Doctors Const App 1
Angular For Net Typescript Const Adoc Require Add Doctors Const Adddoc Require Please Add Doctors Const App 1 (18.31 KiB) Viewed 36 times
const adoc = require("Add Doctors");
const adddoc = require("Please Add Doctors");
const app = adoc();
app.use(adddoc.json());
const getAddDoctor = (req, res) => {
res.send("Add Doctors!");
};
app.get("/", getAddDoctors);
app.listen(5000, () => {
console.log(`Server is running on port 5000.`);
});
Component implementation of add-doctor . The following methods in 'add doctor.components need to be implemented Method Name Description • On dick of 'Add Doctor' button in add-doctor.component.html, this method must be invoked • Should add a doctor to the database by invoking the appropriate method of curewell services . On successful addition of doctor details Store the response in the variable status addDoctor Set the variable 'showbl appropriately • Set the variable msg to 'Doctor successfully added' In case of any error Store the response in the variable error AddM Set the variablems to 'Some error occured • On completion display the message 'Add doctor completed on the console