Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created May 19, 2018 13:03
Show Gist options
  • Save alexzuza/2d53f248dc70e31078ff22c0838f79b9 to your computer and use it in GitHub Desktop.
Save alexzuza/2d53f248dc70e31078ff22c0838f79b9 to your computer and use it in GitHub Desktop.
Ivy tick
export function tick<T>(component: T): void {
const rootView = getRootView(component);
const rootComponent = (rootView.context as RootContext).component;
const hostNode = _getComponentHostLElementNode(rootComponent);
ngDevMode && assertNotNull(hostNode.data, 'Component host node should be attached to an LView');
renderComponentOrTemplate(hostNode, rootView, rootComponent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment