Consider the following code snippet: When the component is deployed, an error is reported. Which two changes should the developer implement in the code to ensure the component deploys successfully? (Choose two.)
A. import getOrders from '@salesforce/apex/OrderController.getAvailableOrders';
B. import getOrders from '@salesforce/apex/c.OrderController.getAvailableOrders';
C. import { LightningElement, api ) from 'lwc';
D. import { LighningElement, wire } from 'lwc';
Suggest answer: AD
Reference:
No comments:
Please share to make the community better.