Skip to content

Instantly share code, notes, and snippets.

@chidumennamdi
Created August 22, 2018 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chidumennamdi/fb73b971dc34bd34a51986faa39bfd2a to your computer and use it in GitHub Desktop.
Save chidumennamdi/fb73b971dc34bd34a51986faa39bfd2a to your computer and use it in GitHub Desktop.
export function resolveDep(
view: ViewData, elDef: NodeDef, allowPrivateServices: boolean, depDef: DepDef,
notFoundValue: any = Injector.THROW_IF_NOT_FOUND): any {
...
case ChangeDetectorRefTokenKey: {
let cdView = findCompView(searchView, elDef, allowPrivateServices);
return createChangeDetectorRef(cdView);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment