Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getViewComponent(moduleName: string) {
return Builder.createViewFromEntry({ moduleName });
}
export function navigateWithEntry(entry: NavigationEntry, topFrame?: Frame): Page {
const page = Builder.createViewFromEntry(entry) as Page;
entry.moduleName = null;
entry.create = function () {
return page;
};
waitUntilNavigatedFrom(() => topFrame ? topFrame.navigate(entry) : Frame.topmost().navigate(entry));
return page;
}