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