Most voted "angular" questions
Angular is a framework created by Google for the development of web applications. Use this tag for questions about syntax, errors, doubts, among others. Not specific to a version. For Angularjs-related issues (1.X) use the Angularjs tag.
Learn more…2,063 questions
Sort by count of
-
0
votes2
answers283
viewsUse of Ng-Click and Hidden with Angular 7
In my project I have a card to which when I click it appears the information of that user, my purpose is that when clicking it opens only of the user I clicked, but nevertheless, it ends up opening…
-
0
votes1
answer25
viewsHow to force Reactiveforms to validate only after trying to send the data?
I have a app simple where I did some tests with the Reactive forms of Angular, and I came across the following situation: I put a console.log in the validation function, and I realized that when…
-
0
votes1
answer207
viewsCorrect method to display/hide interface according to profiles/rules/credentials with Angular 2+
I need, for the current system I develop, a way to hide or display components according to profiles, for example: Profile: Master View View, Create, Edit, and Remove Registrations button Profile:…
-
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
answer101
viewsHow to call a method when using the switchMap operator
I’m studying reactive forms, working with Framework Angular. Thinking about functional and reactive programming, I’m listening to the status changes of the control cep, then, first I used the…
angular functional-programming rxjs reactive-programmingasked 4 years, 9 months ago Thomas Erich Pimentel 3,059 -
0
votes1
answer578
viewsCannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays
Good morning, I am trying to list data from an API and this error is occurring: Someone could help me, I’m not able to solve, follow the codes: HTML code: <div> <mat-list>…
angularasked 4 years, 9 months ago Leonardo Pereira 1 -
0
votes1
answer146
viewsHow to take the mat-Selection-list "Aria-Selected" attribute with angular?
I own a mat-accordion that has a mat-Selection-list in an internal way. I saw that inside this mat-Selection-list has an attribute that calls Aria-Selected, I need to take the data of the checkbox…
-
0
votes1
answer545
viewsHow to change HTML via Typescript (Angular 2)?
I am trying to create a "typewriter" effect where one letter is inserted after another. The code is like this: Typescript: TypeWriter() { let element =…
-
0
votes1
answer67
viewsI cannot display the Key element in the table
The previous problem was solved, but now I need to list also the key of my objects, because after I changed the method in my file . ts from snapshotChanges() for valueChanges(), I can no longer…
-
0
votes1
answer231
viewsHow to make Lazy loading correct at Angular 6, not known component error
I’m trying to do Lazy loading to load certain modules when hitting the URL that really needs to load these modules, however I am getting the following error: core.js:1673 ERROR Error: Uncaught (in…
-
0
votes1
answer327
viewsProblems with angular routes
I’m making an application using angular with/cli, but I find myself in a problem, I finished my home screen in app.Component and I want to redirect to the login screen. But I find where the…
-
0
votes1
answer304
viewsAngular 8 - Picking up attributes on the return of the API service. httpClient
I need help handling the attributes being returned from my API. I want to intercept them in my service class, but I’m not getting through using Subscribe. export class Lancamentoservice {…
-
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
answers112
viewsAngular: @Input does not work with select/mat-select
Hello, I am creating reusable components with angular 8, and I need to exchange parameters between them using the @Input developer, but this does not work when I use native mat-select or select…
-
0
votes0
answers134
viewsUsing modules and their library dependencies at angular 9
I’m creating a library with angular 9 to be used in several projects and would like to know if it is possible to use dependencies within a module without having to import them in the main…
-
0
votes0
answers61
viewsAngular Service with error
The error is after compiling: ERROR in src/app/core/services/service-principal.service.ts:25:12 - error NG2003: No suitable Injection token for Parameter 'base' of class 'Serviceprincipalservice'.…
angularasked 4 years, 8 months ago Guilherme Costa Lopes 47 -
0
votes1
answer84
viewsCapture data from all select elements in HTML with Angular
I made a ngFor to list elements select HTML and I’m wanting to capture all the data selected by this select... I did it this way: app.component.html <form [formGroup]="secondFormGroup">…
-
0
votes0
answers58
viewsMaintain input value of a reactive form after an Submit
I have a simple reactive form that, when saved, erases the log from my input. I’m trying to maintain value after saving it. But I’m not getting it. HTML <form [formGroup]="form"…
angularasked 4 years, 8 months ago paulotarcio 181 -
0
votes1
answer33
viewsHow to get a single database value through the Angularfirestore and show your data via Observable?
That would be the template <div> <form [formGroup]="animalForm" fxLayout="row"> <mat-form-field> <input matInput placeholder="Microchip" formControlName="IdChip" #IdChip>…
-
0
votes1
answer1215
viewsPass an object array to a Component at angular 8
Good afternoon, I would like a help to pass an array of objects to a Component at angular 8. In case I have a form that I use in two parts in my code in one of them I need this blank form and in the…
-
0
votes1
answer3239
viewsERROR Nullinjectorerror: R3injectorerror(Appmodule)[ Vendacomponent -> Vendacomponent]No Provider for Vendacomponent!
I am creating a page for sale and when I click to add product is to open a screen with registered products. In the tutorial I was following he added in the constructor a class that has the array…
-
0
votes1
answer81
viewsHTML being built before the return of the Angular api
I want to receive data from my API and build cards with them dynamically, so I’m using Angular’s 'Binding', but my HTML is being built before the answer is completed, so it’s seen as Undefined. I’ve…
-
0
votes0
answers344
viewsSet field value Select dynamically in Angular reactive form
I have the following select field: .html <div class="col-md-4"> <div class="mda-form-group"> <select class="mda-form-control" formControlName="state"…
-
0
votes0
answers565
viewsAngular 8: CPF/CNPJ field returning empty in editing when changing the mask dynamically with Ngx-Mask!
My input > client.html <div class="form-group col-lg-2"> <label for="tipo">Tipo Pessoa:</label> <select name="tipo" class="form-control form-control-sm"…
-
0
votes1
answer121
viewsModal does not appear after clicking the checkbox
Good morning. I am working on a system made in Angular 8, where, when we enter the home, a welcome modal appears. For now, this modal keeps popping up every time we come home. I would like this…
-
0
votes1
answer57
viewsHow to Resolve Ionic Accentuation Problem
Guys, I went to pass a data through the routes in Ionic, Angular, only the data is a string with accent, when I put the variable that receives the value to show in the title it shows good, however,…
-
0
votes0
answers37
viewsFormarray does not print on my Reactive Form
I’m new to Angular and I’m having a really hard time getting a Formarray into my form. Summing up what I did was: Create 2 Formularies: the main (valForm) and another dynamically created…
-
0
votes1
answer31
viewsHow to insert a dictionary with foreach using observables?
I am trying to create several people in my database when starting the application, but it is only creating the last user. APP.COMPONENT export class AppComponent implements OnInit { title =…
-
0
votes0
answers56
viewsSidebar renders multiple components
I have a Dashboard component, inside it I have a sidebar, which has the effect of changing the components that will be rendered on the screen, the 4 components that can be loaded, are at the bottom…
-
0
votes0
answers31
viewsCreate an array for Chartjs with Firestore + Angular 9 data
To popular a precise monthly/annual data chart that the Array is grouped by date. Data from the Firestore: this.chartsSrv.chartGeral().subscribe((snapshot) => { snapshot.docs.forEach(doc => {…
-
0
votes1
answer120
viewsReuse Angular component 8 by changing the json structure
I am with 2 similar json, however, with one more constant in one of them. I’d like to match the 2 so I can reuse the same component and on the same call. Ex.: "data": [ { "id": 1, "titulo":…
-
0
votes1
answer62
viewsError searching for record with Firstordefaultasync ASP . NET CORE 3.0
I have a method to search the client in the database by the number of the CPF (no points, only the numbers), but in the database the type is as VARCHAR. I did some tests by POSTMAN to test the API…
-
0
votes1
answer47
viewsAdd an object to a arrey
I’m trying to concatenate several objects so that they form a single arrey in my angular design. I’ll show you some code selectFedd(user,feed){ const key = user[0].userQueEuSigo feed.forEach(element…
-
0
votes1
answer215
viewsAngular / Ionic upload file whenever page start
I understand you have a few pages about Angular’s Lifecycle, but I haven’t found how to call a function every time the page finishes loading. I have a key that when starting the APP it is set in…
-
0
votes1
answer88
viewsTable does not reload after deleting a row
Whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa, whoa? next, I’m doing a crud for the company where I work, but I’m not able to make it update automatically…
-
0
votes2
answers89
viewsAngular Storage get Return Undefined
Developing an Ionic / Angular APP and I am using Storage to save and retrieve user token information. The problem is that I am having to call/instantiate N s times a function to retrieve the token…
-
0
votes1
answer26
viewsJasmine is not recognizing the getCurrentNavigation() function
I’m trying to test a component that uses function getCurrentNavigation() of the Router to pick up data via navigation. My component is working normally with the expected purpose when I run with ng…
-
0
votes0
answers34
viewsHow to create an animation and structure-there to be reusable?
I created an animation of a "spinner" like webwhatsapp, but this animation I created from the standard mode through the .scss and @keyframes. I searched the angular documentation and found that…
-
0
votes0
answers66
viewsAngular ngFor add conditional usnado ng-content
I’m using primeng to render data in a table, follow according to my data and my column config API { id: 1, nome: "Test 1", moeda: "Euro", status: "Recebido", data: "01/01/1999", } ngOnInit {…
-
0
votes1
answer34
viewsProblem with POST at Angular
I’m building an Angular login system. The back-end is in cakephp. The request for preflight is being done correctly and receiving status 200 (figure below). After the preflight, the angle sends the…
-
0
votes1
answer94
viewsHTTP request using RAW/JSON Angular 7
Good afternoon, I’ve tried almost everything but I can’t do a POST at the angle using a list, always returns error 500. This is the Component call. ngOnInit() { let CSVProduto:…
-
0
votes1
answer103
viewsHttp request returns Zoneawarepromise
I created a service to run GET / POST / DELETE and PUT solitaire. When I make the first request I get Zoneawarepromise in the body of the message. How to access data within Zoneawarepromise or…
-
0
votes1
answer71
viewsAngular 7 Pipe does not work even exported and declared in main module
Hello, I have a Pipe that turns a number into a string saying the referring month. import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'nomeMesPipe', }) export class NomeMesPipe…
-
0
votes0
answers33
viewsFormcontrolname inside an Ngfor
I have an ngFor with dynamically generated fields by adding rows or columns. but if the user decides to put more than one column or row, the value of the form will only come with the last value that…
angularasked 4 years, 5 months ago Guilherme Henrique 1 -
0
votes1
answer887
viewsTake a value from a child component and send to the parent
I have an Angular 8 application and I have two components, a parent and a child and I have an array of objects in the child component and I need to send the array information to the parent component…
-
0
votes1
answer143
viewsUpdate app variable-Angular Component
I have a menu in the app-Component and need to update the Islogged variable after user login so that the menu appears correct after login successfully. <ion-item routerLink="home"…
-
0
votes1
answer33
viewsRoute guard with asynchronous event
I have a route guard that checks if the user is logged in from a token in the Torage locale that works very well. But he doesn’t expect any asynchronous events. I need to create a new route guard…
-
0
votes0
answers47
viewsAutocomplete with duplicate requests
Hello, I wrote a autocomplete code, but the requests are duplicated every time I press a new key, from the amount greater than that stipulated in the filter. For example, when I type 4 keys, make 4…
-
0
votes1
answer264
viewsHow to insert value in Ionic input 3
Good afternoon guys, I have a question and so far I have not found any solution, I need to pass a value from the database to the input on the login screen, but I did not find how to do this. My code…
-
0
votes1
answer149
viewsDrag and Drop and Resize in Angular
You can combine the Angular Material drag and drop feature (cdkDrag) with resizing? I tried using css, but it didn’t work, there’s another way? Example: app.component.html <div class="drag-drop"…
angularasked 4 years, 4 months ago Munir Baarini 673