Gist 8370783
✓ Published0🌍 Public
Aandybak
Last edited Jan 11, 2014
Created on Jan 11, 2014
This example shows a stock management interface where users can search for stock items and view their availability segments against a booking’s date range. An AngularJS controller watches the booking ID, fetches booking data via the `$resource` API, and computes a day-by-day range list. The `StockItems` factory uses `$http.get` to query the stock item search endpoint and then retrieves per-item segments for the current booking. The view displays these segments alongside the computed date labels, using AngularJS data binding to update the table dynamically.
AI-generated description