The below is a template for a component which tries to include another 
component   . I need to pass the parameters to the Child component and for 
some reason angular does not replace the controller variables while using 
it with another custom component  ("<query-item>" ). 

<!--template for dynamic query component-->
<!--The interpolation works along with HTML tags -->
<div ng-repeat="qc in $ctrl.queryConfigs">
    <ul>
        <li>{{qc.querycomponent}}</li>
        <li>{{qc.qIndex}}</li>
        <li>{{qc.cIndex}}</li>
    </ul>
</div>

<!--The interpolation does not work with custom component <query-item> and 
variable values are not getting replaced -->
<div ng-repeat="qc in $ctrl.queryConfigs">

    <query-item qIndex="{{qc.qIndex}}" cIndex="{{qc.cIndex}}" 
 qComponent="{{qc.querycomponent}}" ></query-item>
    <!--<query-item qindex='0' cindex='1'  qcomponent='checklist' 
></query-item>-->
</div>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to