(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
<template> | |
<div class="card graph-card"> | |
<h5 class="card-header">Usuarios activo e inactivos</h5> | |
<div class="card-body" v-loading="isLoading"> | |
<div ref="chart"></div> | |
</div> | |
</div> | |
</template> | |
<script> |
<template> | |
<div class="hijo-component"> | |
<h1>Hijo</h1> | |
<button @click.prevent="emitirEventoHijo"></button> | |
</div> | |
</template> | |
<script> | |
import {EventBus} from './event-bus' | |
export default { | |
name: 'Hijo', |
<template> | |
<div class="padre-component"> | |
<h1>Padre</h1> | |
<hijo></hijo> | |
<button @click.prevent="emitirEventoPadre"></button> | |
</div> | |
</template> | |
<script> | |
import {EventBus} from './event-bus' | |
import Hijo from './Hijo' // Hijo.vue |
<template> | |
<div class="abuelo-component"> | |
<h1>Abuelo</h1> | |
<padre></padre> | |
</div> | |
</template> | |
<script> | |
import {EventBus} from './event-bus' | |
import Padre from './Padre' // Padre.vue | |
export default { |
import Vue from 'vue' | |
export const EventBus = new Vue() |
<template> | |
<div class="abuelo-component"> | |
<h1>Abuelo</h1> | |
<padre @padre:change="escucharPadre"></padre> | |
</span> | |
</template> | |
<script> | |
import Padre from 'Padre' | |
export default { | |
name: 'Abuelo', |
<template> | |
<div class="padre-component"> | |
<h1>Padre</h1> | |
<hijo @hijo:change="escucharHijo"></hijo> | |
<button @click.prevent="emitirEventoPadre"></button> | |
</span> | |
</template> | |
<script> | |
import Hijo from 'Hijo' | |
export default { |
<template> | |
<div class="hijo-component"> | |
<h1>Hijo</h1> | |
<button @click.prevent="emitirEventoHijo"></button> | |
</span> | |
</template> | |
<script> | |
export default { | |
name: 'Hijo', | |
methods: { |
[{"abilities":["Overgrow"],"detailPageURL":"/us/pokedex/bulbasaur","weight":15.2,"weakness":["Fire","Flying","Ice","Psychic"],"number":"001","height":28.0,"collectibles_slug":"bulbasaur","featured":"true","slug":"bulbasaur","name":"Bulbasaur","ThumbnailAltText":"Bulbasaur","ThumbnailImage":"https://assets.pokemon.com/assets/cms2/img/pokedex/detail/001.png","id":1,"type":["grass","poison"]},{"abilities":["Overgrow"],"detailPageURL":"/us/pokedex/ivysaur","weight":28.7,"weakness":["Fire","Flying","Ice","Psychic"],"number":"002","height":39.0,"collectibles_slug":"ivysaur","featured":"true","slug":"ivysaur","name":"Ivysaur","ThumbnailAltText":"Ivysaur","ThumbnailImage":"https://assets.pokemon.com/assets/cms2/img/pokedex/detail/002.png","id":2,"type":["grass","poison"]},{"abilities":["Thick Fat"],"detailPageURL":"/us/pokedex/venusaur","weight":342.8,"weakness":["Fire","Psychic","Flying","Ice"],"number":"003","height":94.0,"collectibles_slug":"venusaur","featured":"true","slug":"venusaur","name":"Venusaur","Thumbnai |