Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Component tree shows incorrect order of elements #925

Closed
rajinder-yadav opened this issue Jan 18, 2017 · 0 comments
Closed

Component tree shows incorrect order of elements #925

rajinder-yadav opened this issue Jan 18, 2017 · 0 comments
Assignees
Labels

Comments

@rajinder-yadav
Copy link
Contributor

rajinder-yadav commented Jan 18, 2017

DevTools shows all 3 anchor links correctly, however Component Tree display the last anchor at the bottom, this should be at the top.

screen shot 2017-01-18 at 11 39 40 am

Looking at the template code, we have:

@Component({
  selector: 'app-parks',
  template: `
  <h1>National Parks</h1>
  <img src="../../assets/camera.svg" width="20" height="20"> 
  <a [routerLink]="{outlets: { parkit: ['park1']}}" routerLinkActive="active">Park 1</a>
  <a [routerLink]="{outlets: { parkit: ['park2']}}" routerLinkActive="active">Park 2</a>
  <a [routerLink]="{outlets: { parkit: ['park3']}}" routerLinkActive="active">Park 3</a>
  <router-outlet name="parkit"></router-outlet>
  `,
  styles: [`
    a.active {
      background-color: yellow;
    }
  `]
})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants