Tag: component
How to send data from the Parent component to the Child component in LWC
The Lightning Web Component (LWC) is widely used over the salesforce platform to build components that can work dynamically and are a combination of Custom HTML and modern JavaScript. Depending on the need, they can be displayed over Home Page,
LWC using the aura component
Step 1: Launch the developer console and add a lighting component (also known as an aura component). Step:2 Fill in the details in the pop-up box below and click “Submit.” It will create a component like the one below. Download
The RefreshApex Method and its implementation in the Lightning Web Component
The refreshApex() function is used when we want to refresh the page data in lightning web components. We can update the wire function or parameter data using refreshApex (), and then component values will be rendered. Refresh apex works only
Create Component In LWC and display in salesforce page
Following are the steps to create component in LWC and display in salesforce page: Create Default Search org from VS code. Authorize an Org. Create Lightning web component. After creating the lightning web component it will show the component under
Passing Data From One Lightning Web Component to Another Lightning Web Component
Sometimes there is a requirement to pass data from one LWC to another which are not in the same DOM tree i.e they are not linked to each other so for that earlier we used to use the pubsub library
Get records from a related object in Lightning Web Component
Problem: Suppose we have an object with a lookup field and we want to fetch a record with related object data in Lightning Web Component. Solution: We can get a record of the object directly in the LWC JS code.
Component Lifecycle of Angular
Introduction Components are like a building block that controls the HTML view of your application. They can communicate with other components to provide functionality to the application. The components are denoted by @Components. An application can have more than one
Defining a Component using Selector, Template, Styles in Angular
Components Component controls the user interface of Angular. We can make as many components according to the requirement. As Angular is a single page application, we use components instead of using multipage. To create a component, we firstly we go
Reactive Form In Angular
In Angular there are two ways to work with forms: Template-driven forms: Template-driven forms are the default way to work with forms in Angular which is used as an internal representation of the form. Reactive forms: Reactive forms allow us