Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>POC:</div>
- <lightning-button label="SHOW" onclick={showcomps}></lightning-button>
- <template if:true={show}>
- <c-child1></c-child1>
- <c-child2></c-child2>
- </template>
- </template>
- @track show = false;
- showcomps() {
- this.show = !this.show;
- }
- @wire(searchAccounts, { str: 'test' })
- search(result) {
- console.log('1 result => ', JSON.stringify(result));
- }
- @wire(searchAccounts, { str: 'test' })
- search(result) {
- console.log('2 result => ', JSON.stringify(result));
- }
- @wire(searchAccounts, { str: 'united' })
- search(result) {
- console.log('result => ', JSON.stringify(result));
- }
- @wire(searchAccounts, { str: 'test' })
- search(result) {
- console.log('result => ', JSON.stringify(result));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement