Here is an example of how your application should look: Edit: Employees Employee First ID Name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Here is an example of how your application should look: Edit: Employees Employee First ID Name John 2 Update: Employees Employee ID 3 First Name Joseph Employees Employee First ID Name Last Name Salary DOB Smith Joseph Last Name brown 10000 Wed Nov 02 1983 00:00:00 GMT+0530 (India Standard Time) Last Name brown Salary DOB Salary 20000 DOB Thu Nov 02 1983 00:00:00 20000 Thu Nov 02 1983 00:00:00 GMT+0530 (India Standard Time) Email john@abc.com Edit Email joseph@abc.com Action Email Action Update Action joseph@abc.com Edit Assignment -2: Problem Statement Bind data to the employee component created in Module 2 assignment 2 using String Interpolation. Using two-way databinding, edit and update the employee details. Perform the following operations to build the application: 1. Under the employee folder, create a new file 'employee.ts'. In this file create employee interface and add the 6 properties/variables Employee ID First Name Last Name Salary DOB Email Action 2. Import the employee.ts file in employee.component.ts 3. Create an employee object in employee.component.ts file to store dummy employee data Action property: This property helps to edit the details of the employee and display the updated details on the browser. To implement this: 4. Create two methods namely, EditEmp() and Update Emp(), and a boolean variable "showEdit" in employee.component.ts file. 5. Set the value of the variable "show Edit" to false. 6. Implement the logic for the two methods EditEmp() and UpdateEmp() such that: The EditEmp() must change the Boolean value of the property "showEdit" to true The UpdateEmp() changes the Boolean value of the property "showEdit" to false 7. In the employee.component.html file, link the action property with EditEmp() and UpdateEmp() methods. Create two buttons for the same, i.e., Edit and Update 8. The edit button must invoke the Edit Emp() method and the update button must invoke the UpdateEmp() method. 9. Use the *nglf directive with [(ngModel)] to implement two-way databinding and change the employee details when the edit button is clicked. Here is an example of how your application should look: Edit: Employees Employee First ID Name John 2 Update: Employees Employee ID 3 First Name Joseph Employees Employee First ID Name Last Name Salary DOB Smith Joseph Last Name brown 10000 Wed Nov 02 1983 00:00:00 GMT+0530 (India Standard Time) Last Name brown Salary DOB Salary 20000 DOB Thu Nov 02 1983 00:00:00 20000 Thu Nov 02 1983 00:00:00 GMT+0530 (India Standard Time) Email john@abc.com Edit Email joseph@abc.com Action Email Action Update Action joseph@abc.com Edit Assignment -2: Problem Statement Bind data to the employee component created in Module 2 assignment 2 using String Interpolation. Using two-way databinding, edit and update the employee details. Perform the following operations to build the application: 1. Under the employee folder, create a new file 'employee.ts'. In this file create employee interface and add the 6 properties/variables Employee ID First Name Last Name Salary DOB Email Action 2. Import the employee.ts file in employee.component.ts 3. Create an employee object in employee.component.ts file to store dummy employee data Action property: This property helps to edit the details of the employee and display the updated details on the browser. To implement this: 4. Create two methods namely, EditEmp() and Update Emp(), and a boolean variable "showEdit" in employee.component.ts file. 5. Set the value of the variable "show Edit" to false. 6. Implement the logic for the two methods EditEmp() and UpdateEmp() such that: The EditEmp() must change the Boolean value of the property "showEdit" to true The UpdateEmp() changes the Boolean value of the property "showEdit" to false 7. In the employee.component.html file, link the action property with EditEmp() and UpdateEmp() methods. Create two buttons for the same, i.e., Edit and Update 8. The edit button must invoke the Edit Emp() method and the update button must invoke the UpdateEmp() method. 9. Use the *nglf directive with [(ngModel)] to implement two-way databinding and change the employee details when the edit button is clicked.
Expert Answer:
Answer rating: 100% (QA)
Heres how you can implement the requirements step by step Step 1 Create an employeets file under the ... View the full answer
Related Book For
Systems Analysis And Design
ISBN: 978-1119496489
7th Edition
Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth
Posted Date:
Students also viewed these programming questions
-
Alpha, the auditor reviewing the working papers prepared by Mark, is having a hard time reviewing the working paper for the results of the test of controls for accounts receivable. He reperform the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Evaluate the stiffness matrix for the elements shown in Figure P11-6. Let E = 100 GPa and v = 0.3? Figure P11-6, (a) (b) (25, 25.0) 2 (10, 0, 0) (40, 0,0) (25, 0, 25) (10, 7, 0) (4, 2, 0) (12, 2, 0)...
-
The cable supports the loading shown. Determine the distance xB from the wall to point B. Given: W1 = 8 lb W2 = 15 lb a = 5 ft b = 8 ft c = 2 ft d = 3 ft XB OC W:
-
Julie is the owner / operator of a massage parlor in Carmel. Last year she earned $ 4 0 0 , 0 0 0 in total revenue. Her explicit costs were $ 2 0 0 , 0 0 0 . During the year she received offers to...
-
For the multiple linear regression model, show that $S S_{\mathrm{R}}(\boldsymbol{\beta})=\mathbf{y}^{\prime} \mathbf{H y}$.
-
During the first year of operation, 2012, Martin's Appliance recognized $292,000 of service revenue on account. At the end of 2012, the accounts receivable balance was $57,400. Even though this is...
-
The present worth of an increasing geometric gradient is $23,632. The interest rate is 6% per year and the rate of change is 4% per year. The cash flow in year 1 is $3,000. a) List the parameters. (2...
-
Supreme Videos, Inc., produces short musical videos for sale to retail outlets. The company?s balance sheet accounts as of January 1, the beginning of its fiscal year, are given on the following...
-
What are three criticisms about the Endangered Species Act of 1973?
-
A system at constant pressure consists of \(10 \mathrm{~kg}\) of air at a temperature of \(1000 \mathrm{~K}\). This is connected to a large reservoir which is maintained at a temperature of \(300...
-
The Federal Reserve maintains extensive data on finance companies. Go to www.federalreserve.gov/releases, and scroll down until you find G.20 Finance Companies. Click on Releases and find the current...
-
Have students think of some product or service they have purchased recently. Then have them respond to the elements of consumer involvement in Figure 5-4. Is their involvement with this product best...
-
In the context of the model introduced in Kyle [1147] and discussed in Sect. 10.2, let the couple \((X, P)\) represent the linear equilibrium, as stated in Proposition 10.3. Prove the following...
-
Reconsider Problem 11. Plot a graph that shows the planning horizon as the independent variable and the required deposit as the dependent variable. Plot planning horizons from 1 to 250 with a step...
-
Q2: The following are the scores of 20 players in a tennis match: 86, 77, 19, 8, 45, 39, 28, 46, 63, 7, 16, 121, 51, 101, 81, 1, 16, 9, 11, 16 Find the mean, mode, median, variance and standard...
-
In Exercises 1-2, rewrite each verbal statement as an equation. Then decide whether the statement is true or false. Justify your answer. 1. The logarithm of the difference of two numbers is equal to...
-
Describe the differences in the meanings between the two structure charts shown. How have the symbols changed themeanings? Books by Author Books by Author Author Author, " orgtock r Book Book Find...
-
Mark Van Dorn, president of Van Dorn Sub-Oceanic Exploration, Inc., has authorized his Director of Information Services to begin a major project that will redesign the engineering support...
-
Describe the four steps of business process management. Why do companies adopt BPM as a management strategy?
-
A business both buys loose tools and also makes some itself. The following data is available concerning the years ended 31 December 2014, 2015 and 2016. You are to draw up the Loose Tools Account for...
-
Think about it for a minute and then list five costs you think are direct and five that you think are indirect.
-
From the following information, prepare a manufacturing account and statement of profit or loss for the year ending 31 December 2016 and a statement of financial position as at 31 December 2016 for...
Study smarter with the SolutionInn App