isReady
returns true if the item with `name` is already instantiated and stored in the `container`.
Import
Declaration
Arguments
container:
IContainer
- container to check if item createdname:
keyof IContainer
- name of container items.
Returns
boolean
-true
if item is already created andfalse
if it is not.
This function is needed because any attempt to read the item from the container causes the item will be created. isReady
doesn't affect reading the component so it returns its status.
Example
Last updated