We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4563f72 commit 4e05e5cCopy full SHA for 4e05e5c
lib/routing/routing.dart
@@ -181,7 +181,7 @@ class NgRoutingHelper {
181
var viewDef = _templates[path];
182
if (viewDef == null) continue;
183
184
- NgView view = _portals.lastWhere(
+ NgView view = _portals.firstWhere(
185
(NgView v) => path != _routePath(v._parentRoute) &&
186
path.startsWith(_routePath(v._parentRoute)),
187
orElse: () => null);
@@ -199,7 +199,7 @@ class NgRoutingHelper {
199
}
200
201
void _registerPortal(NgView ngView) {
202
- _portals.add(ngView);
+ _portals.insert(0, ngView);
203
204
205
void _unregisterPortal(NgView ngView) {
0 commit comments