Complete the code to use Teleport to render content in the element with id 'modal'.
<template> <teleport to="[1]"> <div>This is a modal content.</div> </teleport> </template>
The to attribute in <teleport> requires a CSS selector string. To target an element with id modal, use "#modal".
Complete the code to teleport a button to the element with id 'popup'.
<template> <teleport to="[1]"> <button>Click me</button> </teleport> </template>
The to attribute must be a CSS selector string. To select an element by id 'popup', use "#popup".
Fix the error in the teleport usage by completing the code.
<template> <teleport [1]="#overlay"> <p>Overlay content</p> </teleport> </template>
The correct attribute to specify the target element in <teleport> is to.
Fill both blanks to teleport a div with class 'popup' to the element with id 'container'.
<template> <teleport [1]="[2]"> <div class="popup">Popup content</div> </teleport> </template>
The to attribute specifies the target selector. The selector string for id 'container' is "#container".
Fill all three blanks to teleport a paragraph with text 'Hello' to the element with id 'portal' and add an aria-label for accessibility.
<template> <teleport [1]="[2]" [3]="modal content"> <p>Hello</p> </teleport> </template>
Use to to specify the target selector "#portal". Add aria-label for accessibility describing the content.