
ctrl+k
Enter a search term above to see results...
Enter a search term above to see results...
Settings allow you to configure your components with default and custom values. This lesson explains how to define settings, access them in your code, and modify them from outside the component.
In component.js, you’ll notice:
defaultSettings
object defines initial values for settingscreateComponent
as a parameterLooking at our code:
createComponent
functionSettings can be provided when using your component:
The component() method provides access to a component instance:
createComponent
settings()
Enhance the profile component to:
component()
to update the profile