A component in the Unified Modeling Language "represents a modular part of a system, that encapsulates its content and whose manifestation is replaceable within its environment. A component defines its behavior in terms of provided and required interfaces". The best example of component can be found in ActionScript- Flash,Flex sdks. There you have UI components like buttons, labels, DataGrids, charts those are reusable, distributable etc.
Questions tagged [components]
11658 questions
41
votes
7 answers
Module vs. component design
What is the difference between module vs. component design?

ms80
- 437
- 1
- 5
- 5
39
votes
12 answers
Blazor - cannot convert from 'method group' to 'EventCallback'
I have a parent component and a child component with an event callback where I want it to pass back a type of T.
The issue I'm having is that I have an error about converting
MethodGroup to EventCallback.
If I convert this to using an Action then…

scottdavidwalker
- 1,118
- 1
- 12
- 30
39
votes
3 answers
Use component in itself recursively to create a tree
Do you know is it possible to use component in itself? If yes,where to read about it?
I have next situation:
have list of mainItems, every Main Item has subItem (the same look like mainItem), every subItem can have it's own subItem etc.
So it…

Serhiy
- 1,893
- 9
- 30
- 48
38
votes
1 answer
Angular4 Components inheritance with abstract class
I want to define a base class for my components to share some features. So i've began with :
export abstract class BaseComponent {
protected getName(): string;
}
@Component(...)
export class MyComponent extends BaseComponent {
protected…

Chklang
- 857
- 1
- 8
- 17
37
votes
3 answers
When to use which constructor for ComponentName in Android?
I am a little bit confused about the ComponentName class in Android.
There are different ways to get to a component name object, but I don't know when to use which... and why!
Example:
Application package is de.zordid.sampleapp
but widget provider…

Zordid
- 10,451
- 11
- 42
- 58
37
votes
6 answers
How to map an array of objects in React
I have an array of objects. I would like to map this array of objects. I know how to map an array, but can't figure out how to map an array of objects. Here is what I have done so far :
The array of objects I want to map :
const theData = [
…

user3622460
- 1,231
- 5
- 23
- 42
36
votes
1 answer
When exactly is component destroyed?
In Angular 2 with Ahead-of-Time (AOT) compiling, I have a parent component and a child component, like this:
I know that the child template is inserted to the DOM…
I am a parent

gye
- 1,374
- 3
- 16
- 27
36
votes
4 answers
How to wait for binding in Angular 1.5 component (without $scope.$watch)
I'm writing an Angular 1.5 directive and I'm running into an obnoxious issue with trying to manipulate bound data before it exists.
Here's my code:
app.component('formSelector', {
bindings: {
forms: '='
},
controller: function(FormSvc) {
…

tcmoore
- 1,129
- 1
- 12
- 29
35
votes
4 answers
How to Two-way Data Binding Between Parents and grandchildren in Vue.js
I faced a problem, I solve it by cookies but I want to solve the problem without cookies. I have a component which called app-header and It has another component which called outmodal.
Now, My first Vue instance require component app-header.
var vue…

Kamuran Sönecek
- 3,293
- 2
- 30
- 57
34
votes
1 answer
When to use Standalone Components or Modules in Angular 14?
I would like to know when should I use Standalone components and when should I create a new module. Since it's a new concept introduced in Angular, what are the criteria to use them?
I've created a new whole app only using standalone components with…

ismaestro
- 7,561
- 8
- 37
- 50
34
votes
2 answers
How to destruct `data-*` (hyphen cased) attributes from props?
Im trying to convert one of my components to a functional stateless component (FSC).
But FSC will not be optimized if using ...rest, therefore i need to destruct the components props.
I call Link as

user3711421
- 1,658
- 3
- 20
- 37
34
votes
9 answers
How do I edit multiple input controlled components in React?
I have a component that stores a contact object as state - {firstName: "John", lastName: "Doe", phone: "1234567890} I want to create a form to edit this object but if I want the inputs to hold the value of the original contact parameter, I need to…

akantoword
- 2,824
- 8
- 26
- 43
34
votes
4 answers
ReactJS difference between stateful and stateless
I am trying to understand the exact difference between React's stateful and stateless components. Ok, stateless components just do something, but remember nothing, while stateful components may do the same, but they remember stuff within this.state.…

Socrates
- 8,724
- 25
- 66
- 113
33
votes
3 answers
How to use "vuetify" transitions on my components?
I'm using Vuetifyjs library in my project. I want to add transitions to my components - but there are no documentation about how to start transitions.
For example I want to add some transitions to appearance of my cards on screen.

YanDatsiuk
- 1,885
- 2
- 18
- 30
33
votes
7 answers
Include another QML file from a QML file
There's another question on Stackoverflow about this matter but I don't find the accepted solution possible. So I ask again because the old question is out of attention.
The situation is this way. I have application screens defined by 'main.qml',…

jondinham
- 8,271
- 17
- 80
- 137