Skip to content

Conversation

@ADjenkov
Copy link
Contributor

@ADjenkov ADjenkov commented Feb 21, 2019

Modify location-strategy to better handle <router-outlets> and modal views:

  • _beginModalNavigation method shouldn't set currentOutlet to null when no outlet for the given Frame found.

  • clearOutlet method: Do not remove outlet, from outlets collection, who belongs to <router-outlet> since it doesn't have any frames[]

  • findOutlet method should always respect the current _modalNavigationDepth when searching for outlet, since there could be 2 or more identical outlets on different modal views ( primary-> (modal:primary)->(modal2->primary))

  • make findOutletByModal private, since it won't be used outside location-strategy anymore

Fix #1735

@ADjenkov ADjenkov self-assigned this Feb 21, 2019
@ghost ghost added the in progress label Feb 21, 2019
@ADjenkov
Copy link
Contributor Author

test package_version#latest

@ADjenkov ADjenkov force-pushed the djenkov/router-outlet-fix branch from 3725201 to d524bc8 Compare February 21, 2019 15:08
@ADjenkov
Copy link
Contributor Author

test package_version#latest

@ADjenkov ADjenkov requested a review from MartoYankov February 26, 2019 08:25
@ADjenkov ADjenkov force-pushed the djenkov/router-outlet-fix branch from d524bc8 to 5367830 Compare February 26, 2019 10:42
@cla-bot
Copy link

cla-bot bot commented Feb 26, 2019

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: ADjenkov.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails
@cla-bot cla-bot bot removed the in progress label Feb 26, 2019
@ghost ghost added the in progress label Feb 26, 2019
@ADjenkov
Copy link
Contributor Author

test package_version#latest

@ADjenkov ADjenkov merged commit 0ed7de6 into release Feb 26, 2019
@ghost ghost removed the in progress label Feb 26, 2019
@ADjenkov ADjenkov deleted the djenkov/router-outlet-fix branch February 26, 2019 11:31
dottodot pushed a commit to dottodot/nativescript-angular that referenced this pull request Mar 16, 2019
* master: exclude files from api ref build NS Angular api ref build script fix(location-strategy): crash on going back with router-outlet after closing modal (NativeScript#1748) release: cut the 7.2.2 release (NativeScript#1742) fix(router): routing services should be provided in forRoot only (NativeScript#1729) fix(list-view): Add support for default item template fix(list-view): add support for "defailtTemplate" docs: cut the 7.2.1 release fix: Router tracing does not work with webpack chore: bump package version to 7.2.1 chore: bump package versino tp 7.3.0 test: Add tests for nested primary outlets fix(location-strategy): extend support for nested primary outlets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants