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
answer50
viewsngModel is showing the wrong input values
I have an ngFor that runs through an array Products. Inside this array has the field: value_venda_current, I am trying to make a *ngFor to go through this array and show an input for each product,…
-
1
votes1
answer724
viewsCollapse navbar does not work in angular 6
People, I’m trying to make a navbar component using Bootstrap 4 and when I put on mobile the button to show the rest of the menu it doesn’t work when I do with an HTML, CSS and JS it works smoothly,…
-
1
votes2
answers416
viewsHow to make multiple http requests at angular?
I need to make an http request for each element of my product array. I tried to do with for() but sometimes it doesn’t work, my browser stops working and it costs to close (I thought it could be…
-
1
votes1
answer114
viewsUse Firebase in SPA project
I need some help with good practice in using the Firebase on a project SPA, in my case the Angular. I’m taking a development course with Angular 4 and in the topic regarding the use of Firebase as…
-
1
votes1
answer456
viewsViewchild / Viewchildren in a Directive
I’m using Angular 7. My goal is to create a Directive to control the focus of some elements with the arrow keys (in this example, a side menu). Let’s assume I have the following html: <ul…
angularasked 5 years, 9 months ago Julio Hintze 188 -
1
votes1
answer516
viewsHow to hide a component in Angular 7 by clicking a button inside a modal?
From a button inside the header component I am calling a modal of Angular Material, in this modal has a button enter, I would need that when clicking this button a component called banner was…
angularasked 5 years, 9 months ago Munir Baarini 673 -
1
votes1
answer177
viewsIs there any way to use html tags in an interpolation?
I have a component that calls a confirmation dialog, I pass to the dialog the title and the description of the dialog in this way: const dialogRef = this.dialog.open(ModalConfirmacaoGeral, { data:…
-
1
votes1
answer1182
viewsAngular routes
I’m studying routes at the angle and following a tutorial from their website. They ask to create an app-routing.module with the ng generate module app-routing --flat --module=app in cmd, my code…
-
1
votes0
answers99
viewsHide modal component at Angular 7
I inserted in my project a modal of Angular Material I would like that instead of it to close when I click the close button, it would be hidden. That’s possible? Follows my-dialog.component.ts…
angularasked 5 years, 9 months ago Munir Baarini 673 -
1
votes1
answer1083
viewsAngular 7 Router appears the page I want but does not remove the previous page and is both at the same time
I set my files all correctly I think, but when I click on the button This is the router configuration page I put the signup in the array app-route.module.ts import { NgModule } from '@angular/core';…
-
1
votes2
answers332
viewsProblems with Angular 6 script import
I have a small problem with script and I believe it is scope of Component. I use a script to scroll in firefox, because in Chrome works normally anchorScrolling. The problem is that if I call on the…
-
1
votes0
answers57
viewsHow to track the scroll event of an element (not the window) using a directive in Angular (v2+)
Hello, I’m creating a screen with this structure: <div class="wrapper"> <div class="appbar"> ... </div> <div class="main" #main> <router-outlet></router-outlet>…
-
1
votes2
answers581
viewsAngular 7 / Typescript error: Property 'result' does not exist on type 'Element'
I have a function that runs while performing the upload of files, however I am having an error in result within the function onload. This mistake makes no sense because if I give one console.log in…
-
1
votes1
answer42
viewsFocusin event does not work
I’m trying to use the event focusin in a Event Binding in Angular 4 and it does not return the expected for the event. I added the event to a div and to test just launched a console.log (to see if…
-
1
votes0
answers472
viewsAngular 7 - catchError is not intercepting exceptions
The catchError operator is not intercepting back-end errors. For example, in the back end I do an email check and return an exception if the email already exists, as below: public Usuario…
angularasked 5 years, 9 months ago Saulo Grego 11 -
1
votes0
answers81
viewsSave dice and then play in BD
I have a code where I show the days of the week, so for each day of the week I have 3 shares: 1 - a select with options; 2 - a button that opens a modal to place an observation; 3 - an input…
-
1
votes1
answer435
viewsNgfor inside another Ngfor Angularx
I am trying to run a loop to show the values, respectively for each user, but with ngIf nothing appears, as I put here in the example, and without ngIf are shown the two values for the two users,…
-
1
votes1
answer747
viewsInterceptor not triggered - Angular 7
I created an Interceptor so that it sends the API access token in the request header, but when performing the http call it is not triggered. Follows the implementations: auth.interceptor.ts: import…
-
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
votes2
answers294
viewsHttpinterceptor null token (Angular 7)
Hello! Time to "pick up" the token on Httpinterceptor is coming as null. follow code d Interceptor: import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent,…
-
1
votes0
answers17
viewsAngular 2 - Uncaught (in Promise): Securityerror: Failed to execute 'replaceState' on 'History'
Does anyone know how to solve or direct this error when Gero a build with Angular ? Angular version information used: Angular CLI: 1.7.4 Node: 10.15.0 OS: win32 x64 Angular: 5.2.9 ... animations,…
-
1
votes0
answers26
viewsAngle navbar expansion effect
I’m trying to make a navbar expansion effect at the angle. When you click on the "show information" link the content should go up, and when you click on "hide", the content should go down. The…
-
1
votes0
answers980
viewsHow to take or manipulate data inside subscribe - Angular
Unfortunately I can’t, even inside the subscribe, scroll through the variable fixtures$ I can send the data to html and show in the table. However I need to manipulate the data to save in the bank…
-
1
votes1
answer876
viewsAngular Calendar 6 - Calendar does not display events on first load
The calendar shows no events on the first load. Only when I trigger any event like clicking the button to change the month-to-week view, for example. I’m using the Angular Calendar 6+ LINK My design…
-
1
votes1
answer597
viewsProblem CORS Angular + Protheus
I’ve looked in some places and I can’t find anything about it, I’d like to know if anyone’s been through it and can help me. I am trying to make a REST request through an Angular application running…
-
1
votes3
answers155
viewsHow do I catch a backend error and not log into the application?
Guys, good night, I researched several topics and tried several solutions and unfortunately I could not adjust the error. I am developing an application with Angular and my Python backend, at the…
-
1
votes0
answers34
viewsAngular 6 with broken Laravel/Lumen JSON
Guys I’m sending an angular post to a Windows/Internet application, but my JSON arrives broken. Now when I send by Postman, it arrives this way. follows my Angular code cadastrar(register:…
-
1
votes1
answer112
viewsFor object in typescript, how to get the object name?
I am running a repeat structure to check which fields of my form are invalid. I need to get the name of the first field that is invalid. I tried something like: for(var campoObrigatorio in…
-
1
votes0
answers187
viewsHow to authenticate with token (JWT)?
Good night, you guys! I have tried 3 different ways, but the closest I got was the code I will post below, I am developing an application as a study using Angular and Python and currently I already…
-
1
votes0
answers151
viewsHow to access a method in a Javascript Function at the angle?
I am using a plugin in Jquery and it works very well in Angular, however I want to call a service method within a function of an alert, follows below the code: click event that creates the modal…
-
1
votes0
answers427
viewsHow to extract Header Token to store in Local Storage?
Good night, you guys! I’m in a battle to get back the token I send from my backend to my browser. Follow my Back code in Python: class Login(Resource): def post(self):…
-
1
votes0
answers153
viewsHow do I get my token in the header?
Guys, I’m 'stuck' in this part of the code, I’m generating my token pro browser but I can’t access it to save in my localStorage. I can’t, in any way access my header this way, every time returns…
-
1
votes0
answers514
viewsMaterial angular does not function even if declared
Basically all the themes are declared and no error is pointed out, but everything that is within the tags related to the angular material, is simply not rendered, the rest, which is not within these…
-
1
votes1
answer112
viewsError 404 run angular Asp.net core
I am doing a project integrating the angular with Asp.net core, but as soon as I installed the angular and configured on the page this presenting error 404, even reviewing all the paths made by…
-
1
votes1
answer1220
viewsAngular 7 - Change the checkbox color after checking as checked
I have the following checkbox list: I’m wearing Bootstrap 4 and Angular 7. I would like to know a way that when the checkbox is clicked, its line changes color, so it is easier for the user to know…
-
1
votes1
answer51
viewsDelete key if all values are empty
I have an array of Javascript objects and wanted to check if certain keys/columns have the value "" (empty). If you delete this key from my Javascript object array, otherwise keep it the same.…
-
1
votes1
answer3867
viewsHow to redirect to another page using angular 7
I am making an application using angular 7 with angular/cli, but I find myself in a problem, I finished my login screen and I want to redirect to Dashboard; But I find where the router-outlet opens…
-
1
votes1
answer314
viewsAngular 7 - Compare Lists
I have two lists in my component. listPermissoesOfUser: UsuarioPermissoes[]; listAnotherPermissoes: UsuarioPermissoes[]; And when I upload the page, I display them in a primeNG picklist (Two…
-
1
votes1
answer642
viewsError PATH Android Ionic Cordova
Well, I have installed Ionic in the new version, and android studio normally and even these days worked. Now when I went to build, I returned these two errors: Failed to find 'ANDROID_HOME'…
-
1
votes0
answers24
viewsRename Arq with multiple upload
I have a form that contains a file type input, where I need to send several Arq at the same time: <div class="row p-3 hours_week" *ngFor="let subType of finalResultTotal"> <input…
-
1
votes0
answers40
viewsPopular another array with the result of a search
I need to get the object array after the search I do with ng2-search-filter. Below where I have the input of my search already working, and I want to pass the result every time it is typed (keyup)…
-
1
votes1
answer1129
viewsAngular 7, p-table Primeng: Error: Invalidpipeargument: '[Object Object]' for pipe 'Slicepipe'
I am trying to make a list in a "p-table" of primeng, until yesterday I was listing everything perfectly, but today when running the angular project I noticed that this error was occurring. I have…
-
1
votes1
answer23
viewsDynamic checkboxes
I am wanting to create dynamic checkboxes. This code should give me, in the field categories, an object with 3 items false, but it’s not working. Where am I going wrong? export class…
-
1
votes1
answer254
viewsAngular 7: Error trying to install Primeng
When executing the installation command the following error occurs: MacBook-Pro-de-Alisson:nutriclinweb-ui alissonfernando$ npm install primeng --save npm ERR! Unexpected end of JSON input while…
-
1
votes1
answer83
viewsList for logical deletion
I have a question about who’s responsible (back or front) in my case, I have a list on front which is sent to the backend save or inactivate the record: [{ idTabela: 2, codKit: "kitCopleto",…
-
1
votes1
answer278
viewsIs it possible to load an angle function after closing another component?
import { Component, OnInit } from '@angular/core'; import { BsModalRef } from 'ngx-bootstrap/modal'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { DbService } from…
angularasked 5 years, 6 months ago Olavo Moncaio 11 -
1
votes1
answer258
viewsCarousel Broken Bootstrap
Good afternoon, I’m having trouble with carousel bootstrap, angular design 7. When adding: *, *:before, *:after { box-sizing: border-box; padding: 0; margin: 0; } in the style sheet. The carousel…
-
1
votes2
answers917
viewsAngular 7 - Add a datatables to the component
I am using this datatable: Angular Datatables I followed the stripe of the examples cited on the site, but the datatable does not appear (does not load), only the html table appears on the screen.…
-
1
votes2
answers119
viewsngOnInit does not save value of the variable returned by a function
I have the following function: getCampos(id: String) { console.log('id em getCampos:', id); this.es.getDocument(EditSiteComponent.INDEX, EditSiteComponent.TYPE, id).then( response => {…
angularasked 5 years, 6 months ago Matheus Ribeiro 143 -
1
votes1
answer38
viewsField disabled if condition is true
I have a value editing and installments view... In this view I have 2 fields, 1 button and a list (where I can edit the line so that the status is paid): In this list contains a status column, if…
angularasked 5 years, 6 months ago LeoHenrique 954