Page 1 of 1

Angular for .NET Developers/TypeScript const docdet = require("Doctor Details"); const detdoc = require("Details Doctors

Posted: Sun May 15, 2022 10:16 am
by answerhappygod
Angular for .NET Developers/TypeScript
Angular For Net Developers Typescript Const Docdet Require Doctor Details Const Detdoc Require Details Doctors 1
Angular For Net Developers Typescript Const Docdet Require Doctor Details Const Detdoc Require Details Doctors 1 (27.13 KiB) Viewed 50 times
const docdet = require("Doctor Details");
const detdoc = require("Details Doctors");
const app = docdet();
app.use(detdoc.json());
const getDetailsOfDoctor = (req, res) => {
res.send("Getting Details of Doctor!");
};
app.get("/", getDetailsOfDoctor);
app.listen(5000, () => {
console.log(`Server is running on port 5000.`);
});
Component Implementation of update doctor . The following methods in update doctor component ts' need to be implemented Method Name Description ngOninit • Initialize the variables 'doctorld' and 'doctor Name' with values received from url route parameters • On click of 'Save' button in update-doctor.component.html, this method must be invoked • Should edit the details of a doctor by invoking the appropriate method of curewell.services • If the update is successful Store the response in the variable 'status' If the response is true, display the message "Doctor's name updated successfully using alert box. Navigate to ViewDoctor Component. edit Doctor Details • Ele display 'Doctor's name not updated using alert box. Navigate to View Doctor Component, • In case of any error • Store the response in the variable errorMag • Display the message 'Some error occurred using alert box • Navigate to ViewDoctor Component. On completion display the message Updated doctor details successfully in the comtole