Skip to content
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

Issue with Alternate #17

Open
c2khanna opened this issue Oct 30, 2018 · 1 comment
Open

Issue with Alternate #17

c2khanna opened this issue Oct 30, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@c2khanna
Copy link

c2khanna commented Oct 30, 2018

I am having trouble with the alternate option.

<mgl-timeline [toggle]="toggle" [alternate]="alternate">
   <div *ngFor="let year of workExData;">
     <app-work-ex-year
       [displayYear]=Object.keys(year)[0]>
     </app-work-ex-year>
     <app-work-ex-position *ngFor="let job of year[Object.keys(year)[0]].jobs" [job]=job>
     </app-work-ex-position>
   </div>
</mgl-timeline>

Both app-work-ex-year and app-work-ex-position are components that have a template for the mgl-timeline-entry component. I have set both toggle and alternate to be true but they do not work. I also read in the documentation that the default behaviour for toggle and alternate is also true but I'm not sure why its working. Could it be related to the mgl-timeline-entry being wrapped by a div? Any suggestions?

@glutengo glutengo added the help wanted Extra attention is needed label Oct 31, 2018
@glutengo
Copy link
Owner

Yes, this could be the problem. mgl-timeline-entry elements need to be direct children of the mgl-timeline elements for everything to work smoothly.

Please let me know if this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants