angular / ngMigration-Forum

109 stars 7 forks source link

Sibling Outlet Issues #12

Open weasnerb opened 5 years ago

weasnerb commented 5 years ago

I have almost completed setting up a hybrid application and wanted to see what sibling router outlets would look like so that when I am converting some page level components I can have angular's router take care of routing for me. My issue is that angular is not recognizing routes and injecting its components into the dom when it should.

I have been following the article from Nrwl here: https://blog.nrwl.io/upgrading-angular-applications-managing-routers-and-url-ca5588290aaa

I have 2 examples with the angular phonecat hybrid application using the strategies they suggest:

Neither strategy works! What am I doing wrong?

weasnerb commented 5 years ago

I also want to note that I subscribed to the angular router in the app component and output everything to the console. There was nothing logged. I believe that angular just isn't aware of the route changes in this hybrid application?

weasnerb commented 5 years ago

Looks like I found the one line of code that allows the routers to work together: setUpLocationSync(upgrade);

I am still not getting the angular component to show up using a custom UrlHandlingStrategy