我使用一个带有<style>块的模板,出于的原因,该模板必须位于其div附近。
当我运行Vue.js时,它似乎删除了样式块,说.
- Templates should only be responsible for mapping the state to the UI.
Avoid placing tags with side-effects in your templates, such as <style>,
as they will not be parsed.
我能做什么?
var app = new Vue({
el: '
我使用VueFire连接到包含菜谱列表的数据库,使用此代码加载所有菜谱(相关代码片段)
firebase: {
recipes: database.ref('recipes'),
},
data () {
return {
activeFilter: Filters.selected //returns active filter from child component for example 'pie'
};
},
在< template>
<li v-for="(recipe, i