SHARE
TWEET

Untitled

a guest Aug 14th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.     <div>POC:</div>
  3.     <lightning-button label="SHOW" onclick={showcomps}></lightning-button>
  4.     <template if:true={show}>
  5.         <c-child1></c-child1>
  6.         <c-child2></c-child2>
  7.     </template>
  8. </template>
  9.      
  10. @track show = false;
  11.  
  12. showcomps() {
  13.     this.show = !this.show;
  14. }
  15.      
  16. @wire(searchAccounts, { str: 'test' })
  17. search(result) {
  18.     console.log('1 result => ', JSON.stringify(result));
  19. }
  20.      
  21. @wire(searchAccounts, { str: 'test' })
  22. search(result) {
  23.     console.log('2 result => ', JSON.stringify(result));
  24. }
  25.      
  26. @wire(searchAccounts, { str: 'united' })
  27. search(result) {
  28.     console.log('result => ', JSON.stringify(result));
  29. }
  30.      
  31. @wire(searchAccounts, { str: 'test' })
  32. search(result) {
  33.     console.log('result => ', JSON.stringify(result));
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top