2.1. Creating a webpage to work with angular

Create a web page in Angular & display the results shown below. (Read the data from the attached json file using Angular service)

Angular QuickStart O localhost 3000 Angular 2 Operation ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE

When the user enter Id, name, salary & department in Add Employee & click button Add Employee data will come in Show All Employee & message will display as shown in figure below –example inserted id 1004,name rashi,salary 87000,department BI

Angular QuickStart O localhost 3000 Angular 2 Operation DATA INSERTED ADD EMPLOYEE ID Name Salary Department Add Employee Sho

When we click button “Delete” that particular  row will be deleted from  Show All Employee & message will come ”DATA Deleted” as shown in below figure –Example delete rows 1003 by pressing delete button

Angular QuickStart localhost:3000 Angular 2 Operation DATA Deleted ADD EMPLOYEE ID Name Salary Department Add Employee Show A

When we click button “Update” that particular  row will be come in Update employee from  Show All Employee & as shown in figure & when updated employee button click the data will update in show All employee & message will display

Angular QuickStart localhost 3000 Angular 2 Operation ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE NAfter Update employee button clicked data updated in show all employee & message came

Angular QuickStart O localhost 3000 Anguiar z operation DATA Updated ADD EMPLOYEE ID Name Salary Department Add Employee Show

2.2. Creating a webpage to work with angular

Create a web page and display the results shown below :

ID NAME SALARY DEPARTMENT JAVA 9000 1002 Vikash 11000 1003||Uma 1001| Rahul ORAAPS JAVA ||12000 1004| Sachin 11500 1005||Amol

Click on any header –Id, name, salary, department it will  display the list in  sorted order of that header  .

Suppose Clicking on Name header so we will get desired output

NAME SALARY DEPARTMENT 7000 1000 1008 Neelima 81000 9000 ID 1005| Amol 1009 Daya |.NET TESTING TESTING JAVA 1001| Rahul 1007

So by clicking any header data will come in sorted order.

JSON file: empDetails.json

Angular QuickStart O localhost 3000 Angular 2 Operation ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE Name Salary Department ID ACTION 1001 Rahul 9000 Java UPDATE DELETE 1002 Sachin 19000 OraApps UPDATE DELETE |1003 Vikash 29000 BI DELETE UPDATE Update EMPLOYEE ID Name Salary Department Update Employee Angular QuickStart O localhost 3000 Angular 2 Operation DATA INSERTED ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE Name Salary Department ID ACTION 1001| Rahul 9000 Java UPDATE DELETE 1002 Sachin 19000 OraApps UPDATE DELETE |1003 Vikash 29000 BI UPDATE DELETE 1004 Rashi 87000 BI UPDATE DELETE Update EMPLOYEE ID Name Salary Department Update Employee Angular QuickStart localhost:3000 Angular 2 Operation DATA Deleted ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE ID Name Salary Department ACTION 1001 Rahul 9000 Java UPDATE DELETE 1002 Sachin 19000 OraApps DELETE UPDATE 1004 Rashi 87000 BI UPDATE DELETE Update EMPLOYEE ID Name Salary Department Undate Emniovee 1222 PM 3/9/2018 Angular QuickStart localhost 3000 Angular 2 Operation ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE Name Salary Department ID ACTION 1001 Rahul 9000 Java UPDATE DELETE 1002 Sachin 19000 OraApps UPDATE DELETE |1004 Rashi 87000 BI DELETE UPDATE Update EMPLOYEE 1002 ID Name Sachin Salary 19000 Department OraApps Update Employee Angular QuickStart O localhost 3000 Anguiar z operation DATA Updated ADD EMPLOYEE ID Name Salary Department Add Employee Show All EMPLOYEE Salary Department ID Name ACTION 1001| Rahul 9000 Java UPDATE DELETE 1002 Dayanand 19000 OraApps DELETE UPDATE 1004 Rashi 87000 BI UPDATE DELETE Update EMPLOYEE ID Name Salary Department Update Employee ID NAME SALARY DEPARTMENT JAVA 9000 1002 Vikash 11000 1003||Uma 1001| Rahul ORAAPS JAVA ||12000 1004| Sachin 11500 1005||Amol ORAAPS |NET 7000 1006 Vishal 17000 1007| Rajita 1008| |Neelima|81000 1009| Daya BI 21000 BI TESTING TESTING 1000 NAME SALARY DEPARTMENT 7000 1000 1008 Neelima 81000 9000 ID 1005| Amol 1009 Daya |.NET TESTING TESTING JAVA 1001| Rahul 1007 Rajita 21000 BI 1004| |Sachin|11500 12000 1002 Vikash11000 |ORAAPS JAVA ORAAPS BI |1003||Uma 1006 Vishal 17000



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *