ionic-researchKit icon indicating copy to clipboard operation
ionic-researchKit copied to clipboard

Displaying data from Service

Open agile-scrum-xp opened this issue 8 years ago • 2 comments

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

agile-scrum-xp avatar Mar 24 '17 04:03 agile-scrum-xp

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.

ninoguba avatar Mar 24 '17 07:03 ninoguba

This is related to #23

ninoguba avatar Mar 24 '17 07:03 ninoguba