(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/:
# Start all dockers based on Id. | |
$ docker ps -a --format="{{.ID}}" | xargs docker [option](start | stop) | |
# Remove all docker containers | |
$ docker ps -a --format="{{.ID}}" | xargs docker rm -f |
(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: { |