Vue.js

[Vue.js] Toggling elements with a key

brightlightkim 2022. 5. 11. 08:33
<button class="brn btn-success btn-sm dropdown-toggle"
	id="cartDropdown" data-toggle="dropdown"
    aria-haspopup="true" aria-expanded="false">
    
<div class="drowndown-menu dropdown-menu-right"
	aria-labbelledby="cartDropdown">
    <div v-for="(item, index) in cart" :key="index">
    	<div class="dropdown-item-text text-nowrap text-right">
        	<span class="badge badge-pill badge-warning align-text-top mr-1">{{item.qty}}</span>
            {{item.name}}
            <b>{{item.price |currency}}</b>
        </div>
    </div>
</div>

//Use Bootstrap Features

'Vue.js' 카테고리의 다른 글

[Vue.js] Adding computed classes  (0) 2022.05.11
[Vue.js] Categorizing lists  (0) 2022.05.11
[Vue.js] filters  (0) 2022.05.11
[Vue.js] Buefy, Vuetify  (0) 2022.05.11
[Vue.js] Managing CSS Styles  (0) 2022.05.11