Questions tagged as 'javascript'

1
answer

How to make a text appear when JS condition is met

I'm starting with js and I have a doubt when it comes to printing text in the DOM with js. I have a button that adds + 1 to var click and I want that when the number of click reaches 5, it appears the text of the function sum...
asked by 19.04.2018 / 15:07
2
answers

how to get all the values of an object?

// practica de clasess class Restaurante{ constructor(menu = {}, meseros = [], horarios = [] ){ this.menu = menu this.meseros = meseros this.horarios = horarios } verMenu(){ let menu = this.menu...
asked by 07.05.2018 / 05:32
1
answer

Updates the states but the second object always shows it empty

I'm trying to develop a web app using React Js , but I've run into a problem, which I do not understand why it happens. What is enclosed in the red colored rectangle is a component, and what is enclosed with the green color is ano...
asked by 19.04.2018 / 03:50
1
answer

Get the name of a class in Angular?

I'm working with Angular 5 . I am passing an object to a component, with the decorator @Input (): @Input() x: any; This object can be of class Xxx, Yyy or Zzz. Can I know within the component if the object received is of one kind o...
asked by 21.05.2018 / 09:09
1
answer

how to put together two fixes in php and show the result in a graph

I have a question I am doing a php file with a swich case of different ways of representing graphs of some data but I have a problem with the linear graph my idea was to make two arrays one where the names are found and another where the d...
asked by 30.10.2018 / 23:02
2
answers

Is it possible to put 2 onclick?

I currently have this <li><a class="tablinks_ tab__active__" onclick="openCategory(event, '__IMAGEN1__1')">IMAGEN1</a></li> <li><a class="tablinks_ tab__active__" onclick="openCategory(event, '__IMAGEN__2')">...
asked by 21.04.2018 / 10:16
1
answer

Error starting npm start

When I run npm start in my terminal it gives me the following error: npm ERR! Linux 4.13.0-38-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" I do not know what the error is. Could someone help me out?     
asked by 19.04.2018 / 19:27
1
answer

The base tag href="" does not work in IE

I deployed the angular application in production mode and in all browsers it is shown except in Explorer 11, where I receive the following error message:    Error: Uncaught (in promise): Error: Can not match any routes. URL Segment: 'pet' Err...
asked by 11.04.2018 / 01:04
1
answer

Error reading undefined property

When I try to do ng build --prod Displays the following error:    92% chunk asset optimizationC: \ Users \ IvanTadeo \ Documents \ petstar \ front-end \ node_modules \ clean-css \ lib \ reader \ input-source-map-tracker.js: 37 if (origin...
asked by 11.04.2018 / 00:00
2
answers

How to focus focus with a vue js element?

I have a select with vue js defined: dacademics:[ {text:'Persona Natural',value:'PN'}, {text:'Bachiller',value:'Bach'}, {text:'Profesional',value:'Prof'}, {text:'Técnico Especializado',value:'TE'...
asked by 11.04.2018 / 14:00