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
-
-1
votes1
answer52
viewsI am unable to perform the grid in the html <mat-table>
Formulario.ts import { Component, OnInit } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { MatTableDataSource } from '@angular/material/table'; import {…
-
-1
votes1
answer146
viewsAngular Integration with Delphi
I have a Delphi Datasnap Restful server to be accessed with Angular front-end, I was able to apply GET normally but in trying to run a DELETE I get the http error Failure Would anyone know how to…
-
-1
votes1
answer43
viewsSpend the month and year when the user clicks
I have this input, that I would like to click I spend the day, month and year that will appear, and not the current month, I will need to make a condition, that I already have ready, but I do not…
-
-1
votes1
answer93
viewsHow to insert data from a form made in Angular2 in a database?
I’m starting to learn Angular 2, and I have to do a CRUD of a system over series, and I need to store data in a database, currently I know how to use Mysql using Xampp. I need to make the request…
-
-1
votes1
answer33
viewsSelecting information that repeats many times
I wonder if there is any way to select information that repeats many times. Example: I have an object array: array = [{fruta: maçã}, {fruta: maçã}, {fruta: banana}] Note that the apple fruit repeats…
-
-1
votes2
answers162
viewsSelect does not load the options using Angular
Hello, I am doing a register of employees at the corner, and, for the address of the employee I am using the web service via cep, but I would like to put the field of the state in a select and for…
-
-1
votes2
answers26
viewsHow to control setValidators in angular?
I using relative forms at angular 4, I’m having trouble controlling setValidators in somewhat large structure, like below: this.criteria = this.formBuilder.group({ discount: this.formBuilder.group({…
-
-1
votes0
answers8
viewsApp structure with various USER_HOLES
I need to develop an angular design that will have various types of user. My question is whether to create two/more applications in the same angular Workspace, using the library system for the…
-
-1
votes0
answers10
viewsFile input does not open system check box [Angular]
I am dealing with an Angular project and I have no experience with the framework. I am trying to create a field for file upload and I have made only one <input type="file" (change)="funcao()"…
angularasked 3 years, 3 months ago Leandro Souza 75 -
-1
votes0
answers20
viewsPlace an icon instead of an HTML string
I have the following code: <a (click)="verificarSeEscondeSaldo()"> {{ escondeSaldo ? 'Exibir' : 'Ocultar'}}</a> treecho correctly does what I wish, but instead of the text: 'display' or…
-
-1
votes0
answers7
viewsHow do I remove # from the URL of an Angular application published in an Azure Application Service?
Good night. I have an application developed in Angular 11. I need to remove # from the address, since it looks like this : https://meusite.com.br/#/login. I want to take out the # that is put in the…
-
-1
votes1
answer90
viewsngFor with checkbox is selecting all values
I have the following checkbox with a repeating structure: <div *ngFor="let tela of telas" class="custom-control custom-checkbox check"> <input type="checkbox" id="{{tela.nome_tela}}"…
-
-1
votes1
answer504
viewsRemove stack page in Ionic
I have the following structure Home > Page 1 My Page 1 every 10 seconds performs an http request. I realized that when I move from Page 1 to Home, it continues to carry out the requisitions. I…
-
-1
votes1
answer32
viewsProblem implementing update method in Angular 2+
I’m using Mongodb’s data bank. I believe that most understand that to update a record it is of utmost importance to take the key identifier, ie the _id, I am managed to get the registry identifier…
-
-1
votes1
answer52
viewsHow to verify if a matrix contains a specific value?
I have the following function: const role = tokenPayload.params.role.map(r => { return r.value; }) [0]; She returns this: author If I remove index [0], returns this: ["author", "admin"] Is it…
-
-1
votes1
answer599
viewsHow to configure Node Express in the Angular 6 project?
I am to send a simple project that is working perfectly on my local computer, and I need to send it to the Heroku server, for this it is necessary to configure a file that will simulate Node Express…
-
-1
votes1
answer78
viewsRepeat structure to insert data into a form group
I have the following form group: this.variacaoForm = this.fb.group({ variacoes: this.fb.array([this.createFormGroup()]) }); createFormGroup(): FormGroup { return this.fb.group({ valor: '', preco:…
angularasked 6 years, 2 months ago veroneseComS 2,752 -
-1
votes1
answer55
viewsError while displaying json in Angular 6
I cannot view json list in html I have json in the.ts component ts component. import { Component, Input, Output, EventEmitter } from '@angular/core'; import { BaseComponent } from…
-
-1
votes1
answer352
viewsHttp Post in Angular
Guys, I’m trying to do an http post to send a json to the server but it’s giving an error. My code is as follows the Imports import { Component, OnInit } from '@angular/core'; import { FormGroup,…
-
-1
votes1
answer148
viewsAngular: PHP JSON returns as Undefined
I have a component calling a service that uses a API in PHP to access a table in a database Mysql and return the information in JSON format. The HTML presents correctly the table information with…
-
-1
votes2
answers954
viewsHow to load a page into a div with Angular
Talk to the guys!! I have a huge question and I can’t solve it. I’m developing a TCC application for my Angular College. I have a menu and within this menu there are options to browse the site, but…
-
-1
votes1
answer23
viewsToogle Select function
I have the following scenario: I have a list of addresses that comes dynamically from the bank, according to what is registered by the user. I need to enable only one address, so when a button is…
-
-1
votes1
answer340
viewsOrdering of Dropdown Angular4
Hello, I have a state field (UF) that is as dropdown and would like to sort it (by name). Could you please give me a north? My code is like this today: estados = [ {label: 'Acre', value: 'AC'},…
-
-1
votes1
answer271
viewsHow do I change to required input using Angular Material?
How can I set as mandatory fields to fill after set choice in the radio as fixed: Code html <span> <label>Atividade Fixa: </label> <mat-radio-group name="atividade_fixa">…
-
-1
votes1
answer119
viewsAngular: Webpack has been initialised using a Configuration Object that does not match the API schem
I started having this error in my app at Angular 7, already tried to remove module folder, install, remove cache and nothing, the error remains. Invalid Configuration Object. Webpack has been…
-
-1
votes1
answer202
viewsADMOB free Advertising award-winning video does not work
I have a problem with showing ads like video admob free, I have other types of advertising and it works 100%. I know you have some more current versions of admob free, but I would like to resolve it…
-
-1
votes1
answer328
viewsCannot read Property 'map' of Undefined error in Browse (Angular)
Hello, When I access my page, error appears in Browse: Typeerror occurred Typeerror: Cannot read Property 'map' of Undefined. My code containing the call . map() is like this: export class…
angularasked 5 years, 9 months ago Victor Freidinger 339 -
-1
votes1
answer124
viewsState and Neighborhood Combo in Angularjs
I have this method of consultation dependent on State and City. I can save and consult. When I go on the update screen, type 'RJ / Angra dos reis', it does not appear on the screen if I go on the…
angularasked 5 years, 9 months ago Vanderlei Campos 1 -
-1
votes1
answer288
viewsFirst always empty input in Formgroup
The first input of the form does not load the value from the indexedDB, nor does it carry a new value typed for recording in the database. import { Component, OnInit } from '@angular/core'; import {…
-
-1
votes1
answer100
viewsHostlistener to listen to a variable
I’m trying to implement an event HostListener to listen to a variable change. I have an example that’s working, but you’re listening to the whole page and I just want to hear a little piece of code.…
-
-1
votes1
answer112
viewsError generating Angular Project Build
I have a project for car rental didactic purposes. I already managed the WAR file of the Back End project, now I need to generate the Angular files. However, when I will generate the build of my…
angularasked 5 years, 9 months ago GUSTAVO HENRIQUE LOPES SPACHUK 93 -
-1
votes2
answers345
viewsJSON with array within IONIC 3
I would like to know how I recover the data coming from a Rest api, where I have an array within a Json. Example Below: [ { "Presencas": [], "Turma": { "Alunos": [], "Voluntarios": [], "Id": 1,…
-
-1
votes1
answer181
viewsHow to generate a Javascript Object Array dynamically
I want to "assemble" a JSON object array with data from the database, but some challenges have arisen. I have the following selection field with a method that is called every time the value is…
-
-1
votes1
answer311
viewsService for sending SMS or Push Notification
I have an application developed in Angular 7 that is in the final stages of development. This application makes use of Firebase services, one of which is the Cloud Firestore. I’m looking for a way…
-
-1
votes1
answer67
viewsException when trying to open modal
Error ERROR Error: Staticinjectorerror(Appmodule)[Meucomponent -> Renderer]: Staticinjectorerror(Platform: core)[Meucomponent -> Renderer]: Nullinjectorerror: No Provider for Renderer! at…
angularasked 5 years, 6 months ago LeoHenrique 954 -
-1
votes2
answers185
viewsVisual Studio Code - Debug by Chrome
Hello, I’m trying to debug my code angular of visual studio code with the extent debbuger for chrome, but it does not enter in mine breakpoint never, that including this gray and written unchecked.…
-
-1
votes2
answers233
viewsHelp - result.foreach is not a Function
How do I make a forEach on the return of a subscribe? this.service.obterTodos() .subscribe(result => { result.forEach(element => { this.usuComponent.push(element); }); }); Service:…
angularasked 5 years, 5 months ago LeoHenrique 954 -
-1
votes1
answer39
viewsI need to add the percentage value to the caption (Chartsjs)
I wanted to add the value of percentages to the caption, I have tried several ways, and still could not the solution to my problem. Component with chart settings @Input() chartData: chartData;…
-
-1
votes1
answer40
viewsI can’t do Onblur/Onvaluechanged
I’m using the DevExpress, when I do direct by HTML works, but with the dxi-item no, probably because I’m using onValueChanged incorrectly... FORM 1 Component.html <dxi-item dataField="cep"…
-
-1
votes1
answer171
viewsHow do I make the endpoints of an API, made with Spring Boot, visible only to the application pages?
I have an application where the back-end was done in Java with Spring Boot, and the front was done in Angular. I deploy the Angular project built into the folder src/main/Resources/Static. In the…
angular spring spring-boot spring-mvc angular-routesasked 5 years, 4 months ago Gerson Ferreira Junior 59 -
-1
votes1
answer1243
viewsAngular Typeerror: Cannot read Property '0' of Undefined in Table with 2 ngFor
The list is working perfectly, but I can not understand why the error on the console: TypeError: Cannot read property '0' of undefined In the image appear the table, the console and the array…
angularasked 5 years, 4 months ago Alexandre Nunes Reys 9 -
-1
votes1
answer224
views*Ngfor is not traversing the array in html
I am consuming the Wirecard API to perform an integration, the moment I try to return all the cards that are registered to a client, I can get them only in the console.log menu, when I try to go…
-
-1
votes1
answer65
viewsUnsubscribe does not work in RXJS, what is the correct method of use?
I made a code to monitor a map using the nativescript-Geolocation and the nativescript-google-maps-sdk, there is an Angular service that encapsulates all the logic of access to the…
-
-1
votes1
answer60
viewsI’m a beginner in Angular, would anyone know how to solve a dependency problem . map of the following code?
import { Injectable } from '@angular/core'; import { AngularFireAuth } from 'angularfire2/auth'; import { Observable } from 'rxjs'; import * as q from 'q'; @Injectable({ providedIn: 'root' }) export…
angularasked 5 years, 3 months ago Edilson Lima 21 -
-1
votes1
answer587
viewsAngular Error: Property 'Controls' does not exist on type 'Abstractcontrol'
I’m having trouble setting values within form inputs. My form.component.ts: // Form this.constituicaoForm = this.fb.group({ // Contrato descricao: ['', Validators.required], modalidade: ['',…
-
-1
votes1
answer38
viewsAngular, Firebase Realtime Database, json image
I have a mobile application that stores the photos in a database and sends them in json format to a Realtime Databse from Firebase. I’m developing a web application with Angular, I can get the data…
-
-1
votes2
answers1783
viewsHow to add item to an array list at angular
I have a script registration screen and on this screen I can add n scenarios, I’m using angular, I can add the items in the list, but while typing in the input it changes the items that are already…
-
-1
votes1
answer32
viewsBootstrap bug with Angular
I have this problem in my project, I added bootstrap 4.3.1 normally in the angular project, but when trying to split the columns as the code below this margin appears preventing bootstrap grid…
-
-1
votes1
answer221
viewsHow to update the values of my form through a modal?
I have a form to fill out a sale, this form will be assembled according to the information that the user will choose by modal. I can normally receive data from modal, but my form does not update the…
-
-1
votes1
answer317
views*ngIf does not function as expected, Angular
I basically have this *ngIf <label>{{view._source.favoriteView }}</label> <!--Não é favorito--> <div *ngIf="view._source.favoriteView"> <button…
angularasked 5 years, 2 months ago Matheus Ribeiro 143