I am looking to implement ngClass based on whether an item is checked or not. Essentially, I want the user to visually see which items are selected through radio buttons or check-boxes by adding a class to them, allowing me to apply different CSS styles to selected items. I am utilizing for check-boxes and a standard ngRepeat for radio buttons. In the example provided for the check-box model, the selected items are highlighted. However, I want the page to load with items pre-selected and adorned with a class for the selected ones. I prefer not to rely on a 'change' function as it requires user interaction. Instead, I want it to be bound to the page or within ngClass.
I have explored How do I conditionally apply CSS styles in AngularJS?, but it did not address my specific needs.
Any assistance on this matter would be highly appreciated.