-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to achieve Dynamic page load in new Version ? #54
Comments
This is similar to your previous issue |
can you please give me a help about how can i Dynamic page load in new version ? |
You can try the following items = [1, 2, 3];
public templateSelector = (item: any, index: number, items: any) => {
return index % 2 === 0 ? 'even' : 'odd';
if (index === 0) {
return 'first';
} else if (index === 1) {
return 'second';
} else if (index === 2) {
return 'third';
}
}; <Pager [items]="items" [itemTemplateSelector]="templateSelector">
<ng-template pagerTemplateKey="first" let-i="index" let-item="item">
<StackLayout height="100%">
<router-outlet height="100%"></router-outlet>
</StackLayout>
</ng-template>
<ng-template pagerTemplateKey="second" let-i="index" let-item="item">
<StackLayout height="100%">
<router-outlet name="Graph"></router-outlet>
</StackLayout>
</ng-template>
<ng-template pagerTemplateKey="third" let-i="index" let-item="item">
<router-outlet name="DataList"></router-outlet>
</ng-template>
</Pager> |
Hello, Thank you so much :) it's working |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have added router-outlet in in my html code as follows:
And routing elements as follows:
i known 3 + version uses templates
how to achieve Dynamic page load in 3 + version ?
The text was updated successfully, but these errors were encountered: