I've been successful implementing the dynamic html for a directive: Angular.js directive dynamic templateURL
I've also successfully used the recursion example here: Recursion in Angular directives
I have failed to get them to work together, mainly because the second example will not compile the ng-include template.
any suggestions on creating dynamic directives recursively?
right now, nested questions don't bind.
background: I have a piece of json that contains questions and answers and questions recursively and i'm trying to dynamically create a form with said json. some are lists of checkboxes, some are just text, some are radio select
{
"questions":[
{
"answers":[
{
"type":"text",
"textvalue":"",
"questions":[ ... etc ... ]
}
]
}
]
}