{"action":"created","issue":{"url":"https://api.github.com/repos/ninoguba/ionic-researchKit/issues/23","repository_url":"https://api.github.com/repos/ninoguba/ionic-researchKit","labels_url":"https://api.github.com/repos/ninoguba/ionic-researchKit/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ninoguba/ionic-researchKit/issues/23/comments","events_url":"https://api.github.com/repos/ninoguba/ionic-researchKit/issues/23/events","html_url":"https://github.com/ninoguba/ionic-researchKit/issues/23","id":153829270,"number":23,"title":"How to add an array of choices (irk-text-choice) for irk-text-choice-question-step","user":{"login":"mrvipinkashyap","id":6937626,"avatar_url":"https://avatars.githubusercontent.com/u/6937626?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvipinkashyap","html_url":"https://github.com/mrvipinkashyap","followers_url":"https://api.github.com/users/mrvipinkashyap/followers","following_url":"https://api.github.com/users/mrvipinkashyap/following{/other_user}","gists_url":"https://api.github.com/users/mrvipinkashyap/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvipinkashyap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvipinkashyap/subscriptions","organizations_url":"https://api.github.com/users/mrvipinkashyap/orgs","repos_url":"https://api.github.com/users/mrvipinkashyap/repos","events_url":"https://api.github.com/users/mrvipinkashyap/events{/privacy}","received_events_url":"https://api.github.com/users/mrvipinkashyap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T17:37:31Z","updated_at":"2016-05-09T17:44:09Z","closed_at":null,"body":"I want to add an array of multiple questions based on dynamic data stored in JSON. \r\nThis is how I am trying to do it:\r\n`<irk-task>`\r\n`<irk-text-choice-question-step ng-repeat=item in items style=\"multiple\">`\r\n`<irk-text-choice  text=\"{{item.text}}\" value=\"{{item.value}}\"></irk-text-choice>`\r\n`</irk-text-choice-question-step>`\r\n`</irk-task>`\r\nIt doesn't seem to work.\r\nI tried this which worked but this doesn't allow me to select multiple choices which is crucial to me:\r\n`<irk-task>`\r\n`<irk-text-choice-question-step style='multiple'>`\r\n`<div ng-repeat=item in items>`\r\n`<irk-text-choice  text='{{item.text}}' value='{{item.value}}'></irk-text-choice>`\r\n`</div>`\r\n`</irk-text-choice-question-step>`\r\n`</irk-task>`\r\n\r\n\r\nIn js file in irkTextChoiceQuestionStep in link I am simply doing this:\r\n`scope.items = JSON.parse(window.localStorage.interventionData);`\r\nThis is working fine when I am adding ng-repeat to div but not when I am adding it to irk-text-choice-question-step.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ninoguba/ionic-researchKit/issues/comments/217935521","html_url":"https://github.com/ninoguba/ionic-researchKit/issues/23#issuecomment-217935521","issue_url":"https://api.github.com/repos/ninoguba/ionic-researchKit/issues/23","id":217935521,"user":{"login":"ninoguba","id":4361804,"avatar_url":"https://avatars.githubusercontent.com/u/4361804?v=3","gravatar_id":"","url":"https://api.github.com/users/ninoguba","html_url":"https://github.com/ninoguba","followers_url":"https://api.github.com/users/ninoguba/followers","following_url":"https://api.github.com/users/ninoguba/following{/other_user}","gists_url":"https://api.github.com/users/ninoguba/gists{/gist_id}","starred_url":"https://api.github.com/users/ninoguba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninoguba/subscriptions","organizations_url":"https://api.github.com/users/ninoguba/orgs","repos_url":"https://api.github.com/users/ninoguba/repos","events_url":"https://api.github.com/users/ninoguba/events{/privacy}","received_events_url":"https://api.github.com/users/ninoguba/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T17:44:09Z","updated_at":"2016-05-09T17:44:09Z","body":"Please refer to the following gist for the proper way to handle dynamic data when building your survey markup: \r\n\r\nhttps://gist.github.com/nicksteffens/56a86a679e4b062341cb79a05105f110\r\n\r\nHere's the related issue:\r\nhttps://github.com/ninoguba/ionic-researchKit/issues/17"}}