question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fragment is not working

See original GitHub issue

DEMO : https://plnkr.co/edit/xAGjXqpmkLbCokvCt9qQ?p=preview

AppComponent.ts

      <a routerLink="frag" fragment="anchor"> Fragment Component </a>   //<<<===fragment="anchor"
      <router-outlet></router-outlet>

FragmentComponent.ts


@Component({

    template: `
    <div>
      <h2>Fragment Component</h2>

      <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
      <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
      <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>


      <div id="anchor">should scroll automatically till here</div>      //<<<===I believe it should scroll automatically till here. But its not working.
    </div>

  `,
})

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
micronykscommented, Oct 10, 2016

@DzmitryShylovich Could you please help to resolve it? which configuration you are talking about?

if it is a bug, I’ll recreate it again. But I need confirmation first.

1reaction
DzmitryShylovichcommented, Oct 10, 2016

I would say it’s miss configuration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android fragment is not working - Stack Overflow
In my Activity I'm not doing anything special, I've tried using regular Activity as well as FragmentActivity and I've gotten the same problem....
Read more >
7 Common Mistakes Easily Made with Android Fragment
Mistake makes when working in Fragment sometimes are hard to debug, as it is not always replicable due to its complicated lifecycle event....
Read more >
Fragment | Android Developers
onStop() fragment is no longer visible to the user either because its activity is ... The details fragment showing the contents of a...
Read more >
Creating and Using Fragments | CodePath Android Cliffnotes
Hiding and showing relevant fragments using the fragment manager. Receiving data from intents and passing data between fragments.
Read more >
Shorthand Fragment is not working if React is not in the scope ...
Shorthand Fragment is not working if React is not imported. You have to include React or import Fragment and use it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found