I am making an application in angular2. Now i have route configured for the homepage and login page. My homepage is a single page homepage and the navigation bar's links points to different section of the homepage. I have added slide animation to it so that when the user click the link in the navigation bar, the page will slide down to that section. Everything works fine when i load it initially i.e.
http://localhost But when i go to a different route say login https://localhost/login and then again go back to the main page either through back button of the browser or by redirection, the animation does not work and when i click the links in the navigation bar, it brings me to the section but without the animation i.e like jumping directly to that section. As I am using webpack module bundler I have injected the required javascript file through vendor.ts file. I have also tried tying it to a component level but the animation just does not work after i visit some other route. So any help or idea or suggestion or a simple pointing to the right direction to achieve my goal is greatly appreciated. Thank you -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
