Question: Question 3 (7 Marks): Assume a Handlebars file receives data of an array that consists of objects with properties: employeeld (string) fullName (string) is Manager
Question 3 (7 Marks): Assume a Handlebars file receives data of an array that consists of objects with properties: employeeld (string) fullName (string) is Manager (boolean) Write valid HTML code (using Handlebars) to show the employeeld, fullName values and text "Manager" (only when isManager value is true, otherwise show nothing) for each object in the array using an html table. The array of objects has been passed to the view using the variable "data". If "data" does not contain any objects, show message "No data" in a single table cell.
| Employee ID | Full Name | (is)Manager |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
