Skip null items and null children in Vue v-for

A simple v-if might work: <li v-for=”item in items” v-if=”item !== null” track-by=”id”> Give it a try. If not, do this: You can add a filter for that (in main.js before your App instance): Vue.filter(‘removeNullProps’, function(object) { return _.reject(object, (value) => value === null) }) then in the template: <li v-for=”item in items | removeNullProps” … Read more

How can I make a list-style-image scale with the list’s font size, when we can’t use glyph fonts?

I would approach solving this problem using a pseudo element before each li Here is the markup ul { list-style: none; } li { position: relative; } li:before { /* The desired width gets defined in two places: The element width, and background size. The height only gets defined once, in background size. */ position: … Read more

tech