Machine Problem
Write a program that uses ng-repeat directive that will display the list of computer parts with the following fields ID, Product, Quantity, and Price/Piece values below.
ID Product Quantity Price/Piece
1 Laptop 50 PHP 8,912.34
2 500 GB SS Hard drive 250 PHP 2,350.12
3 Optical Mouse 25 PHP 132,45
4 USB Keyboard 17 PHP 250.12
5 15" LCD Monitor 34 PHP 3,453.1
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing<!-- index.htm Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT Date : July 30, 2021 Friday 3:18 PM Place : Bacolod City, Negros Occidental Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com Email : jakerpomperada@gmail.com --> <html> <head> <title>Computer Parts List Using ng-repeat in AngularJS</title> </head> <style> body { font-family: arial; font-size: 25px; font-weight: bold; } </style> <link rel="stylesheet" href="bootstrap.min.css"> <script type="text/javascript" src="angular.min.js"> </script> <body ng-app="ngrepeatApp" ng-controller="ngrepeat_Controller"> <br> <h2>Computer Parts List Using ng-repeat in AngularJS </h2> <br> <table class="table table-bordered table-striped"> <tr> <th>ID</th> <th>Product</th> <th>Quantity</th> <th>Price/Piece</th> </tr> <tr ng-repeat="prod in products"> <td>{{prod.id}}</td> <td>{{prod.product}}</td> <td>{{prod.quantity}}</td> <td>{{prod.price}}</td> </tr> </table> <script> var app = angular.module("ngrepeatApp", []); app.controller("ngrepeat_Controller", function($scope) { $scope.products = [ { id: 1, product: 'Laptop', quantity: '50', price: 'PHP 8,912.34'}, { id: 2, product: '500GB SSD Hard Drive', quantity: '250', price: 'PHP 2350.12' }, { id: 3, product: 'Optical Mouse', quantity: '25',price: 'PHP 132.45'}, { id: 4, product: 'USB Keyboard', quantity: '17',price: 'PHP 250.12'}, { id: 5, product: '15" LCD Monitor', quantity: '34',price: 'PHP 3453.10'} ]; }); </script> </body> </html>
No comments:
Post a Comment