Angular for .NET/TypeScript
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
Angular for .NET/TypeScript const adoc = require("Add Doctors"); const adddoc = require("Please Add Doctors"); const app
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Angular for .NET/TypeScript const adoc = require("Add Doctors"); const adddoc = require("Please Add Doctors"); const app
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!