"psr-4":
{
"core\\": "core",
"application\\": "application",
}
{
el: '#vu-app',
data: {
inputs: [],
},
methods : {
addInputButton : function (event) {
this.inputs.push('Кнопка');
},
myFunc(index){
alert('Нажата кнопка '+index);
}
}
}
<div id="container">
<button v-on:click="addInputButton">Add Input</button>
<input
v-for="(inp, index) in inputs"
:key="index"
:value="inp"
type="button"
@click="myFunc(index)"
/>
<div>
File | Settings | Editor | File Types
/api/please-give-me-all-data-for-homepage
GET /api/articles/
GET /api/articles/?page=2
GET /api/articles/?page=2&with=popular
GET /api/articles/123/?comments=true
/api/articles/123/?comments=true
, и в том, если надумаете прикручивать серверный рендер. $h1: 30px;
h1 { font-size: $h1; }
@media(){
$h1: 20px;
}
$h1: 30px;
$h1-sm: 20px;
h1 { font-size: $h1; }
@media(){
h1 { font-size: $h1-sm; }
}
:root {
--h1: 30px;
}
h1 { font-size: var(--h1, 30px); }
@media(){
:root {
--h1: 20px;
}
}