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
votes0
answers423
viewsAngular 6 - Load Reactive Form after Http request
I’m having trouble displaying a client list obtained by a request GET in a component select. Like the GET is asynchronous, the form is being built before the request is finished and hence the select…
-
0
votes2
answers1538
viewsAngular Error NG Serves
Does anyone know why this error is occurring? ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** 91% additional asset processing…
angularasked 6 years, 1 month ago João Roberto Velozo 1 -
0
votes1
answer225
viewsI am trying in Angular to access Mysql data through PHP
I have already followed several examples and tutorials that I found on the Web, but so far none of the options worked. My application has a table in the Mysql database that is accessed by a PHP API…
-
0
votes1
answer45
viewsElements disappearing when you enter responsive mode and only appear when you click it
As soon as my page is loaded, all the elements that fit on the screen are rendered, but as you scroll down the screen a little bit, the elements are not shown, they are only rendered when I click on…
-
0
votes1
answer232
viewsHow to consume an API "without permission"
In the searches I did, I found that it is not possible to consume an API if you do not release your host on the server(back-end), but I hope you are mistaken, this is the reason for this question,…
-
0
votes1
answer100
viewssrc iframe error
my code: <div class="col-md-3 col-sm-4 col-xs-6" *ngFor="let g of gag"> <div *ngIf="g.tipo == 2"> <iframe width="280" height="162" [src]="g.caminho" frameborder="0" allow="autoplay;…
-
0
votes0
answers84
viewsfill out municipality combobox according to the selected state in Angular
Good morning, I own a combobox of municipality that is loaded with municipalities according to the selected state, I am bringing the data of an API made in C# as follows:…
-
0
votes1
answer105
viewsGenerating correct json with p-dropdown primeng?
I’m new to Angular and I’m in the following situation using the API java: I have the class "Lancamento" where the category NAY is mandatory (class Category) @Entity @Table(name = "lancamento")…
-
0
votes2
answers208
viewsContext 'this' of Eventemitter<string> is not attributable to the 'this' method of type Observable<string>
I looked at the example in a Github repository. The application runs successfully and the written code works normally, but I have the following error in my Visual Studio Code: The 'this' context of…
-
0
votes2
answers390
viewsHow to get data from an observable firebase?
I have a list that is loaded from firebase. This list has 3 attributes, value, id, and date. Only I will need to capture only one of these attributes and assemble an array with them, to then perform…
-
0
votes1
answer143
viewsDisplay an alert box when loading the page
I am working with Angular and I need to display an alert box when loading the html of a component, but I can only do this from a button click, but I need the alert to open as soon as the page is…
-
0
votes0
answers39
viewsWorking with multiple selects in form group
I have two selects: <div class="select"> <select [class.disabled]="loadingcadastro" (change)="getIdTipoVariacao(item.value.tipo, i)" formControlName="tipo" class="select-text">…
-
0
votes1
answer271
viewsHow can I set an array within my formgroup?
I have the following function that creates a form group: My ngOnInit: ngOnInit() { //Ao iniciar a tela deve carregar o formgroup padrão das variações this.variacaoForm = this.fb.group({ variacoes:…
angularasked 6 years ago veroneseComS 2,752 -
0
votes1
answer1120
viewsDeselect Radio Button from Angular Material
Hello, I have a problem at Angular. I want my Angular Material button select to be unchecked (uncheck) when the following function is called, but I have no idea how to do it, can anyone help me.…
-
0
votes0
answers85
viewsHide select option when it is equal to the option already chosen
I have a select that has two options: Size, Color. When I select Size, when I click again on my select, it still shows the Size option. I would like to remove it and make available only the other,…
-
0
votes1
answer532
viewsOnly render my widget if it is not empty with *ngIf
I have the following variable: listAtributos: any[] = []; In my template I want to check if it is empty, if it is, do not show the content, if there is something inside it, show the contents of the…
-
0
votes2
answers65
viewsFunction that runs for and goes excluding according to condition
I have an array called listAtributos: any[] = []; and I need to remove the lines that match my index. If I give a console log in this way, it shows me exactly the elements that should be deleted:…
-
0
votes1
answer529
viewsHow to call Angular 4 method in HTML code generated by jQuery?
I’m using a template I bought made in Angular, but not everything in Angular has a lot in jQuery. I’m using jQuery’s Datatable (because it’s already native to the template, it has all the css ready…
-
0
votes1
answer143
viewscan’t assign to Property "Validator" on "selectAnimal": not an Object"
I’m trying to apply a mandatory Validator when filling a select, but I’m getting: can’t assign to Property "Validator" on "selectAnimal": not an Object" Follows my code: ngOnInit() {…
-
0
votes1
answer263
viewsConsole error: Can’t bind to 'formGroup' Since it isn’t a known Property of 'form'
I’m using Angular 6 I’m creating a form: The form: <app-layout> <div class="card"> <div class="card-header"> Novo Post </div> <div class="card-body"> <form…
-
0
votes1
answer159
viewsWrong icon on angular Stepper mat
I’m trying to put an Edit icon when the state is address, but the icon shown is from the first state. I tried to: First step: <ng-template matStepperIcon="edit">…
-
0
votes1
answer198
viewsLocal variable inside an ngFor
I have an input text inside an ngFor and would like to define a dynamic local variable that has a unique id value for each input, so that I can perform the . Focus() of this input, but I don’t know…
-
0
votes1
answer186
viewsAngular 5 to 6 rxjs migration
Well I’m trying to migrate a new project from Angular 5 to Angular 6, but I’m having some difficulty with the way it changed the functions of rxjs, I’m posting below how I did it in Angular 5 and it…
-
0
votes2
answers848
viewsRead data from Firebase Altime databse
I am developing an angular application, and I need to read the recorded data in my firebase database. How would I read all the data that is inside object 9 for example ? I need to read this data and…
-
0
votes2
answers449
viewsngFor inside ngFor does not work
I’m trying to access the data with ngfor but I can’t. How should I access each data with ngfor? json: [ { "id": 1, "name": "Programas", "base_Url": "http://uol.com.br", "order": 0, "programs": [ {…
-
0
votes1
answer74
viewsChange inputfile label when you already have an Angular selected file
I have the following input file that uploads an image and turns to Base64: <div class="image-upload"> <img class="fotoAnimal" [src]="imageSrc" style="max-width:300px;max-height:300px"/>…
-
0
votes1
answer3862
viewsERROR Error: Cannot find a supporting differ Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays
I am trying to display a list using ngFor but is giving this error: ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables…
-
0
votes1
answer17
viewsIsn’t repeating structure checking for null elements?
I have two repetition structures that go through my element and check if the attribute "idatributo" is null. If my object has two elements, only the first tribute is being printed. The second is…
-
0
votes1
answer95
viewsSubfolder configuration in htaccess
Well I have a lodging with the following structure: index.html .htaccess app site Well, inside the app folder I have an application compiled in Angular 7.0 and inside the site folder I also have a…
-
0
votes1
answer47
viewsFunction running before receiving value in ngModel
I have the following checkbox: <mat-checkbox [(ngModel)]="anuncio.checkouCarimbo" (click)="checkouAnuncio()" name="checksegundoAnuncio" class="example-margin checkFoto"> </mat-checkbox>…
-
0
votes0
answers78
viewsMy routing module cannot find my component
I am trying to apply Lazy loading on my application, but for some reason is not found importing the component I do in my component routing file by returning: Uncaught Error: Component…
-
0
votes1
answer3946
viewsHow to Make Ascents with the Sidenav Component of Angular Material Design
I made a menu using the Sidenav of Angular Material Design in this way: <mat-sidenav-container class="sidenav-container"> <mat-sidenav #drawer class="sidenav" fixedInViewport="true"…
-
0
votes1
answer186
viewsAngular4: How to recover values in Response Headers
I have a Webservice that returns a PDF file (byte[]). I am returning the file name in the Response header. In Chrome I can see the values of 'Response Headers' and see that all headers are there,…
-
0
votes1
answer834
viewsHow to Get Specific JSON Data with Angular 2x?
I have an answer that I turn into JSON this way: const resposta = JSON.stringify(response); console.log(resposta); Give me the feedback on console.log this way: [{"nome":"Ramos…
-
0
votes0
answers107
viewsWhen rendering an application in Angular 6 the layout is breaking
I did a job with Angular 6 in a company and I didn’t touch it anymore. I went back to study to actually learn and started with a project I picked up on the internet here. Well, I followed the…
-
0
votes0
answers28
viewsHow to access data contained in two Collections at the angular?
I have a JSON that has the data of the person and another Collection with "countsJogadors", how do I make my listing also show what is in "contasjogadors"? My JSON: { "nome": "Ramos Janones",…
-
0
votes1
answer164
viewsHow to search a JSON registry with Angular 2x?
I have a JSON in this format: [ { "agencia": "2342342", "digito_agencia": "2342", "numero_conta": "234234", "digito_conta": "23423", "_id": "5bff1a63a617f53414766c27", "createdAt":…
-
0
votes0
answers189
viewsAngular 6 - Reactive Forms - load observable after clicking on the form
form has been button then I post, and only returns when I click on the form formcontrolname import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core'; import { NavParams } from…
-
0
votes1
answer1045
viewsDownload a file generated in the backend by Angular2+
Hello, I’m having trouble downloading a file generated by backend in my angular project, I have the following method generateXlsx(obj) { let headers = new Headers(); let token =…
-
0
votes1
answer70
viewsFunction running before my request response
In a modal I have a form with data that can be edited. If the user confirms the update the data is updated and then it will be forwarding the new page. But on this new page the information that…
-
0
votes1
answer59
viewsProblems with requests in Angular
Good afternoon guys, I’m starting a new internship and already a few days I’m stuck on a task that I can not understand the failure, I must make a registration form that communicates with an API…
-
0
votes0
answers47
viewsfirebase return
Guys, I’d like to help with the firebase return, here’s the thing, in my angular design I have a component with some fields to be validated and a service only for validations, I’m having a hard time…
angularasked 5 years, 11 months ago Rafael Moura 165 -
0
votes3
answers824
viewsAngular 7 - Reactive Form update template
I have the following class in my model export class TelefoneNumero { id: number; numero: string; descricao: string; } export class Pessoa { constructor(){ this.telefones = []; } id: number; nome:…
angularasked 5 years, 11 months ago Filipe Mansano 1 -
0
votes1
answer49
viewsIs it bad practice to check Auth in the Components I want to crash?
I have the following authentication logic initAuthListener() { this.afAuth.authState.subscribe(user => { if (user) { this.store.dispatch(new Auth.SetAuthenticated());…
-
0
votes1
answer257
viewsTypescript+Angular: Property is Missing in type [2322]
I’m having a user mock problem that I’m doing on TS, it’s my first site in life and I’m kind of lost with some mistakes. I end up wasting hours trying to solve simple mistakes This is the error, but…
-
0
votes0
answers38
viewsRestclient.post Angular 7
I’m trying to create a post like this, more in angular 7: get '/callback' do # get temporary GitHub code... session_code = request.env['rack.request.query_hash']['code'] # ... and POST it back to…
-
0
votes1
answer67
viewsAngular problems - NPM
When I give an npm install on my project, it makes me that mistake : gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at…
-
0
votes1
answer1323
views[Angular][Bootstrap] -Open and close Collapse effect with just one click
I am wanting to perform a Collapse effect at the time I change item in the slider below. When I change the item, I receive from the service, various information recharging my child component…
-
0
votes1
answer128
viewsRemember Login with Storage Ionic
Good morning to you all! I’m trying to remember the user data when sign in with Facebook, so I don’t need to always log in again. On my login page is: loginWithFB(userData) { this.fb.login(['email',…
-
0
votes0
answers67
viewsTransform a scss animation to fit the angular animations
Hello, I need to place in my angular animations the following scss animation: 0% { opacity: 0; -webkit-transform: translate3d(0,100%,0); transform: translate3d(0,100%,0); } 100% { opacity: 1;…