Displaying data from Service
I was wondering is it possible to pass data retrieved from service to survey or consent form.
$scope.consentDatazzzz = [
{id: 'id041', type: 'overview', summary: 'overview 1', content:'AAAAAA'},
{id: 'id042', type: 'data-gathering', summary: 'overview 2', content:'BBBBB'},
{id: 'id043', type: 'privacy', summary: 'overview 3', content:'CCCC'},
{id: 'id044', type: 'data-use', summary: 'overview 4', content:'DDDD'},
{id: 'id045', type: 'time-commitment', summary: 'overview 4', content:'EEEE'},
];
and using something like is not working for me:
<irk-task ng-repeat="consentData in consentDatazzzz">
<irk-visual-consent-step id="{{consentData.id}}" type="{{consentData.type}}" summary="{{consentData.summary}}">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam adhuc, meo fortasse vitio, quid ego quaeram non perspicis. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Quonam, inquit, modo?
</irk-visual-consent-step>
</irk-task>
Cheers Asif
This has something to do with ng-repeat and custom directives. I got something almost working but it is not evaluating the {{values}} but instead passing them off as strings.
This is related to #23