mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
feat(custom-elements): add experimental custom elements build (#22863)
Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { AnimationBuilder, NavOutletElement, RouteChain, RouteID, RouterDirection } from '../../../interface';
|
||||
import { componentOnReady } from '../../../utils/helpers';
|
||||
|
||||
import { ROUTER_INTENT_NONE } from './constants';
|
||||
|
||||
@ -18,7 +19,7 @@ export const writeNavState = async (
|
||||
if (index >= chain.length || !outlet) {
|
||||
return changed;
|
||||
}
|
||||
await outlet.componentOnReady();
|
||||
await new Promise(resolve => componentOnReady(outlet, resolve));
|
||||
|
||||
const route = chain[index];
|
||||
const result = await outlet.setRouteId(route.id, route.params, direction, animation);
|
||||
|
||||
Reference in New Issue
Block a user