Most voted "component" questions
39 questions
Sort by count of
-
15
votes2
answers2517
viewsWhat are Web Components?
What are web components and how to use this technology ? I would like to understand a little more about this technology and visualize an example with its use.
-
8
votes1
answer515
viewsWhat is COM (Component Object Model)?
I was reading this question1 here on the site and I have sometimes come across the term "objects WITH". A brief survey showed me that WITH that is to say Component Object Model, but I couldn’t…
windows language-independent interoperability componentasked 7 years, 7 months ago Jéf Bueno 67,331 -
5
votes1
answer101
viewsHow can I update a parent status via child in React?
I need to update a parent’s status via a link click on the child’s Komponent, but I’m not getting it. I’m trying this way: Component Pai export default function Home() { const [board, setBoard] =…
javascript react web-application app componentasked 4 years, 1 month ago João Paulo Santos Pessoa 51 -
4
votes1
answer800
viewsHow to access Httperrorresponse data (error.Message) by Angular 2 (7)?
Code Component.ts delete(i: number) { this.formConcluido = false; this.formConcluidoErro = false; this.cidadeDeletar = this.cidades[i]; this.cidadeDeletarId = this.cidadeDeletar.Id;…
-
3
votes1
answer1314
viewsAngular2 - Inject Component to Body
Good afternoon! I have the following component import { Component, Input, ElementRef, HostListener, OnDestroy, OnInit } from '@angular/core'; /** * This class represents the navigation bar…
-
2
votes1
answer37
viewsComponent is printed 2 times in browser
Good guys, I’m developing an app with angular2 final version using routes. I created some files and then came across a problem of routes. My Component Home is printed 2 times in the browser. In the…
-
2
votes2
answers1211
viewsHow to Create a Reusable Component in Angular
I am with a system where all modules have a standardized record listing screen with pagination. I adapted a pagination code I found on the Internet to make pagination on demand. However, instead of…
-
2
votes0
answers164
viewsv-model in the Component
I’m trying to use the v-model inside a component but it doesn’t work. Code main.js, which will have the information used in the v-model: import Vue from 'vue' new Vue({ el: '#app', data: {fields:…
-
2
votes1
answer1926
viewsHow to add a Component to each click on the React
I have a form where there is a responsible pattern (Novoresponsavel), but if there are some other have to be added a new responsible at each click of the 'add another' button, today I can only add a…
-
1
votes1
answer734
viewsService variable comes as UNDEFINED in Angular Component 2
I’m not getting a variable from a service at 2. I have companies-index.component.ts and companies-crud.service.ts. I would like to take a service variable in Component but it always comes as…
-
1
votes2
answers146
viewsUse spring-boot and @Component with @scheduled and it hangs every 12 hours
I have a project done with Jhipster. He uses spring-boot. I use this application as an order platform where I consume several webservices of an ERP and also sound cronizo the data with android…
-
1
votes2
answers3949
viewsHow to change the style of an React component by clicking a button?
Guys I’m using React and I’m creating some components, I’m very beginner in React, I’m styling the components in an external css file and importing, but I need to make a side bar q need to open and…
-
1
votes0
answers19
viewsPTBR FATAL EXCPETION:main java.lang.Runtimeexception - window get call back
I am making an application that needs to swap between screens and appears the following error: early java.: package com.example.deadsec.gerflores; import android.content.Intent; import…
-
1
votes1
answer47
viewsHow do I create an element with Vue JS?
I made this very basic structure, a component with input, I wanted to click a button and generate one more in html. I try to search with appendchild or v-for or even v-html, but I’m not getting. let…
-
1
votes3
answers1339
viewsAngular 7: pass the service from one component to another per parameter
I’d like to pass a service as a parameter between two components, from father to son. The communication between the components is okay, I am receiving the service, but when I try to use the…
-
1
votes1
answer149
viewsWhat is the function of daughter routes at the angle?
Does the angular daughter route function serve only to render the daughter route component on the parent route component? Because I wanted to do the exact opposite. I would like when I go from the…
-
1
votes2
answers2305
viewsReact.js creating several components with arrays
I’m trying to create several components <Pit /> however, one per result coming from the API, without excluding the previously created. The API returns an object with 2 arrays inside, the…
-
1
votes1
answer56
viewsReact JS Lifecycle Problem
Good night! I’m in the development of a page that has three buttons. The first button (Publications) renders this content: The second Button(Jorys) renders this second content: And the third…
-
0
votes1
answer128
viewsHow to use v-for with components, using array?
I’m using the question below to better illustrate my question. Vue is not rendering table with v-for, how to solve? How do I do the same thing? Only by displaying a listing, using a component, but…
-
0
votes1
answer644
viewsHow to pass an object between independent components
I have a problem, I need to pass an object between two independent components but I’m not succeeding, I tried with $broadcast but without success, follow my components to get ideas of the structure.…
-
0
votes1
answer22
viewsAngular Directives js2
import { Component } from '@angular/core'; import { AuthDirective } from '../utils/auth.directive'; import { Router } from '@angular/router'; import { HttpClientService } from…
-
0
votes0
answers101
viewsUse @keyframes of css with angular 5.2.6
I’m migrating a project and it had some animations. The same goes for animations in css with @keyframes, but putting directly into the component’s css and viewing the generated page from the angular…
-
0
votes1
answer1423
viewsInput does not allow typing
I have a page with some inputs, I’m using React so I have some components to help when I create the form Form Code: <div className="content novo"> <Alerta ref={(ref)=>this.alerta = ref}…
-
0
votes1
answer41
viewsSlimselect + Angular 6
Hi, this is the first time I use Slimselect and I’m having trouble making it work. I created a test-only Component called 'Addaccount' and in its 'ngOnInit()' method, I put what the Slimselect…
-
0
votes1
answer268
viewsUsing one System variable in another - Angular IONIC
I’m starting with Angular and would like to know if there is any way to pass the value from one variable to another. defineDificuldade(dificuldade) { console.log('Selected level ~~> ',…
-
0
votes1
answer339
viewsHow to use Infinite Scroll within an ion-card?
I need the InfiniteScroll issue an event while rolling the scroll of card, and not the page. import { Component, OnInit, ViewChild } from '@angular/core'; import { GrupoService } from…
-
0
votes0
answers36
viewsAngular Components 2
I’m having doubts about component inputs: I have a component called field .ts import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'app-field', templateUrl:…
-
0
votes1
answer447
viewsHow to create 2 instances of the same component on the same page?
I’m having problems with the components in Angular, I have a component that emits an event when selecting a particular item, and I need to use it twice on the same page, but the second component…
-
0
votes1
answer155
viewsHow do I set the state of the parent through inputs in the child ? in React?
My problem is the following I am doing an IMC application, and I intend to change only the body of the screen when the result appears, without updating the page . my big problem is that I can’t use…
-
0
votes2
answers518
viewsAngular: Value-to-variable assignment
I have a method that calls a service from an API and stores its result in a variable, but this result is not being assigned the variable I need. atribuirImagem(): void {…
-
0
votes1
answer97
viewsAngular page composed of several components
When working with Angular projects the use of componentes brings several benefits, however, these benefits can lead you to make some mistakes, which may only be seen a few lines of code later. Would…
-
0
votes0
answers27
viewsHow do I change a Component React to a React Hooks function?
I want to take this whole Component and turn it into a hook with functions export default class App extends Component { constructor(props) { super(props); this.state = { selectedStartDate: null,…
-
0
votes1
answer155
viewsChange a Component Class React to a hook useState React-Native
I want to transform this code of class in a code of useState hook, wanted the same functionality as this code class has become the Hook export default class App extends Component {…
-
0
votes0
answers12
viewsError: Invalid element of type passed to PDF renderer
I would like to implement the PDF download in my project, however the File is not being downloaded, and the terminal returns this error " Error: invalid element of the type passed to the PDF…
-
0
votes0
answers26
viewsGet another component variable for editing
I’m using Laravel + vuejs in an application I’m using to study both frameworks. I have a following problem: I am displaying a modal after clicking on "edit" and wanted to get the values that passes…
-
-1
votes1
answer1071
views -
-1
votes1
answer153
viewsReactjs Components - Button/rendering problem
I have a Componente Button and the same is found within another componente Main. My purpose was that by clicking on this componente Button, it was alternating between other visual components inside…
-
-1
votes1
answer184
viewsHow to access and change objects within an XML file by Activity?
good evening, I’m having a hard time changing the components of an XML file, when I open the Drawer menu I click on the "tracking" button it opens the xml fragment_tracking.xml, but I can’t access…
-
-2
votes1
answer798
viewsAccess HTML elements inside an Angular component
I have a Dashboard: <app-navbar></app-navbar> <div style="display: flex; height: 90vh;"> <app-sidebar id="sidebar" class="hide"></app-sidebar>…