I'm fairly new to Angular and I've successfully added a Bootstrap modal to my project. However, I am struggling to retrieve the value from "programcontroller".
What I need is the id_program from "programcontroller" inside the "ModalInstanceCtrl" controller. I attempted to include it in the RESOLVE, but couldn't access the data.
I managed to extract hardcoded data using RESOLVE from "programcontroller" into the "ModalInstanceCtrl" controller of the modal.
The issue arises when trying to obtain the id_prgram using this snippet:
<input type="text" ng-hide=" true" ng-model="id_program" ng-init="id_program=item._id">
This code block is within an ng-repeat loop and takes time to populate due to its asynchronous nature.
I have included the code for your reference below.
(Include code snippet)Any assistance would be greatly appreciated. Thank you!