pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://angular.dev/api/core/ComponentRef

heme === 'auto' && prefersDark)) { documentClassList.add(DARK_MODE_CLASS_NAME); } else { documentClassList.add(LIGHT_MODE_CLASS_NAME); } if (location.search.includes('uwu')) { documentClassList.add('uwu'); } ComponentRef • Angular
    • Overview
@angular/core

ComponentRef

Class
stable

Represents a component created by a ComponentFactory. Provides access to the component instance and related objects, and provides the means of destroying the instance.

API

    
      abstract class ComponentRef<C> {}
    
    

setInput

void

Updates a specified input name to a new value. Using this method will properly mark for check component using the OnPush change detection strategy. It will also assure that the OnChanges lifecycle hook runs when a dynamically created component is change-detected.

@paramnamestring

The name of an input.

@paramvalueunknown

The new value of an input.

@returnsvoid

location

ElementRef<any>

The host or anchor element for this component instance.

injector

Injector

The dependency injector for this component instance.

instance

C

This component instance.

hostView

ViewRef

The host view defined by the template for this component instance.

changeDetectorRef

ChangeDetectorRef

The change detector for this component instance.

componentType

Type<any>

The type of this component (as created by a ComponentFactory class).

destroy

void

Destroys the component instance and all of the data structures associated with it.

@returnsvoid

onDestroy

void

A lifecycle hook that provides additional developer-defined cleanup functionality for the component.

@paramcallbackFunction

A handler function that cleans up developer-defined data associated with this component. Called when the destroy() method is invoked.

@returnsvoid
Jump to details
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy