Search
 
SCRIPT & CODE EXAMPLE
 

HTML

vue get data from slot template

<!-- On component -->
<div v-for="item in list">
	<slot name="item" :item="item" />
</div>

<!-- Usage -->
<template #item="scope">
	<p>{{ scope.item.id }}</p>
</template>
Comment

PREVIOUS NEXT
Code Example
Html :: jsf axonivy sub component 
Html :: disable a tag 
Html :: how to use pyscript in html 
Html :: vscode-jest intellisense not working 
Html :: how to quote stuf in htl 
Html :: redo of healer season 3 
Html :: onclick open new url html 
Html :: text souligné html 
Html :: ol text align 
Html :: how to add links 
Html :: accept function jsf component 
Html :: vue get element by id 
Html :: bootstrap Badges Contextual variations 
Html :: 9+15 
Html :: how to add google icons in html 
Html :: how to disable input form when select change 
Html :: html5 astrix for absolutely required field inside a td tag 
Html :: coc allow comments in json 
Html :: button functions html 
Html :: how to run python in html 
Html :: iframe responsive 
Html :: reverse ol order html 
Html :: predefine data list in input 
Html :: Disable right click on your webpage 
Html :: call modal by id href 
Html :: div fit content background 
Html :: html <a 
Html :: how to include href in image 
Html :: how add float input type in html 
Html :: internet and intranet 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =