Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Dynamic ngInclude inside ngRoute is not working #16784

Closed
raghuveersubbarao opened this issue Dec 5, 2018 · 2 comments
Closed

Dynamic ngInclude inside ngRoute is not working #16784

raghuveersubbarao opened this issue Dec 5, 2018 · 2 comments

Comments

@raghuveersubbarao
Copy link

raghuveersubbarao commented Dec 5, 2018

    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-sanitize.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-route.min.js"></script>

            <uib-tabset active="active" >             
                <uib-tab ng-repeat="tab in tabs" id="{{tab.id}}" index="$index+ 1">                                                   
                    <uib-tab-heading>
                        <i class="{{tab.class}}"></i>{{tab.title}} 
                    </uib-tab-heading>                            
                    <!--   This line is not working-->
                    <ng-include src="{{tab.temp}}"> </ng-include> 
                </uib-tab>
                <uib-tab active="inactive">
                    <uib-tab-heading>Testing</uib-tab-heading>
                    <!--                        This line is working-->
                    <ng-include src="'../Party/PartyCreation.html'"> </ng-include>
                </uib-tab>
@Narretz
Copy link
Contributor

Narretz commented Dec 5, 2018

ngInclude expects an expression, not an interpolation. Try with <ng-include src="tab.temp"> </ng-include>

@Narretz Narretz closed this as completed Dec 5, 2018
@raghuveersubbarao
Copy link
Author

@Narretz Thank you... :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants