Somewhat new to Angular and trying to come to grips with scopes. I understand that each pass through a collection via ng-repeat gets its own scope. What I don't understand is in the following code:
<tr data-ng-repeat="oneField in $parent.formEventDefinition">
<ng-include src="getUrl(oneField.fieldType)"></ng-include>
{{oneField.fieldType}}
In the ng-include, oneField.fieldType is undefined
but the {{}} directive on the next line writes the correct value to the page. Why does it find the right value from scope in one case but not the other?
Either an answer or a pointer to a place to find the answer on my own is good. I'm trying to learn and am getting lost.
Thanks!