Comments (3)
You're providing the Router
class in a couple components. The Router
should only be provided once, in the root, with provideRouter
.
Re-providing it causes the child Router
to be destroyed when the view that provides it is destroyed, which completes the navigation transitions observable, so the root router never sees any additional navigation events. Your app should work normally if you remove Router
from your component providers
arrays.
It would be nice if there was a runtime warning when multiple Router
instances were detected.
from angular.
You're providing the
Router
class in a couple components. TheRouter
should only be provided once, in the root, withprovideRouter
.Re-providing it causes the child
Router
to be destroyed when the view that provides it is destroyed, which completes the navigation transitions observable, so the root router never sees any additional navigation events. Your app should work normally if you removeRouter
from your componentproviders
arrays.It would be nice if there was a runtime warning when multiple
Router
instances were detected.
@garrettld, you're a star, I've just spent 3 days trying to work out why exactly this was happening to me and you answered in your first line.
from angular.
Thank you so much @garrettld, that's resolved the issue. Totally agree that some sort of warning should be raised if multiple instances are detected (at least when running in dev mode). Thanks again, this was an incredibly frustrating issue that was really bumming me out!
from angular.
Related Issues (20)
- #BeSt-sAfE-VeRsHoN^^- cAsH ApP MoNeY GeNeRaToR 2024 cLaIm yOuR MoNeY FrEe nEw-mEtHoD [yGa7]
- [ReAl]!!@~fReE V BuCkS GeNeRaToR : GeT 15000 FoRtNiTe vBuCkS AnD CoDeS No hUmAn vErIfIcAtIoN 2024 {Lt!8}
- uLtImAtE.GuIdEs**_xBoX GiFt cArD GeNeRaToR 2024 nEw fReE UnUsEd cOdEs nO HuMaN VeRiFiCaTiOn [6~CrH]
- #~!!NeW.MeThOd!!~@ xBoX-GiFt-cArD-CoDeS-GeNeRaToR 2024-2025 DaIlY ReDeEm {Tb2r}
- !@~FoRtNiTe fReE V BuCkS GeNeRaToR WiThOuT HuMaN VeRiFiCaTiOn - gEt v bUcKs fOr fReE In 2024 [9~mNd]
- !!(QuIcK.WaYs)!!@~ XbOx gIfT CaRd cOdEs gEnErAtOr 2024 [fReE MiCrOsOfT XbOx gIfT CaRd cOdEs iNsTaNt]`~hB7M
- new~method** amazon gift card codes generator 2024_uNLIMITED AMAZON GIFT CARDS_NO SURVEY [B/lB1]
- GeT^25-lEgIt wAyS***~ To gEt fReE XbOx gIfT CaRdS & CoDeS (2024) nO VeRiFiCaTiOn {Q~D9}
- Comments break if else chains HOT 3
- Free Xbox Codes Giveaway ๐ฎ Xbox Code Glitch 2024 ๐ฎFree Xbox Codes Hack 2024
- Free Xbox Codes Giveaway ๐ฎ Xbox Code Glitch 2024 ๐ฎFree Xbox Codes Hack 2024
- Free Xbox Codes Giveaway ๐ฎ Xbox Code Glitch 2024 ๐ฎFree Xbox Codes Hack 2024
- {{FREE!}} Xbox CODE GENERATOR 2024 ! FREE Xbox GIFT CARD GENERATOR NO VERIFICATION NO SURVEY
- {{FREE!}} Xbox CODE GENERATOR 2024 ! FREE Xbox GIFT CARD GENERATOR NO VERIFICATION NO SURVEY
- FREE $100+ Xbox Gift Cards Generator 2024 Daily Update ๐ค PlayStation Store Gift Card Codes
- Free Xbox Codes Free Xbox Gift Card Codes 2024
- Free Xbox Codes Free Xbox Gift Card Codes 2024
- Free Xbox Codes Free Xbox Gift Card Codes 2024
- first-app-lesson-00 does not install HOT 4
- Add case insensitive (query) param map (CaseInsensitiveParamMap)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.