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
answer1679
viewsHow to call functions of the parent component in the child component?
I have a child component staying at the father’s, as follows: Parent component: @Component({ selector: 'app-componente-pai', template: ` <p id="elemento">componente pai</p>…
-
1
votes2
answers169
viewsCan you pass a specific route determined by an id ? (Angular Routes)
Ex : I want to register(I’m working with Tadata) My route today {path:entity/:identity/registration} Where the identity is replaced dynamically when I click, for example: in the database register…
-
1
votes0
answers1810
viewsCORS error with Ionic/Angular application and PHP API
Access to Xmlhttprequest at 'https://exemplodedominio.com/app-api/api/login-register.php' from origin 'http://localhost:8100' has been blocked by CORS policy: Response to preflight request doesn’t…
-
1
votes2
answers120
viewsHow to do page re-load with angular according to queryparms
I have a simple input that serves as a search component, with the Submit function onSubmit() { this.submitted = true; if (!this.searchForm.valid) { this.submitted = false; } else {…
-
1
votes1
answer47
viewshow to disable or enable input text through a reactive radio input
I’m calling this way in html <div class="ui-g-12 ui-md-4 center-zone"> <input-radio id="controle" theme="boolean" label="tem controle?" (click)="valueSelect($event)"></input-radio>…
-
1
votes3
answers132
viewsBest way to pass data from one component to another
I have a code where a list of plans is displayed that an academy has, when clicking on one, opens a page where it chooses whether it will be (Time: quarterly, half-yearly or annual), and selects the…
-
1
votes1
answer117
viewsWhat configuration should be done in Angular for use with Jekyll?
I’m developing an application that will use Jekyll with its themes as the basis of the site, however, I need to create a Jekyll layout <jekyll_root>/_layout/angular.html which will be uploaded…
-
1
votes0
answers38
viewsGrab content from the iframe
Hello, Utilizo Angular 8. I need to get the contents from inside the iframe: The iframe itself shows me in the console this: But I don’t know how to get the information out of him... IFRAME…
-
1
votes1
answer56
viewsApply Padding to all elements except one in particular
I would like to apply the property padding in the navbar elements, except for the last element in the class nav-login I use bootstrap 4.0 Html: <nav class="navbar navbar-expand-lg…
-
1
votes1
answer323
viewsPaginator does not work when it has two tables in angular material
I have two query screens where I load the data in a materialtable with angular and use the pagination, however, only one is working properly, apparently, Paginator is always loading the last one. I…
angularasked 4 years, 9 months ago user33105 -
1
votes1
answer83
viewsI cannot pass the key attribute of the object I want to edit
I’m trying to edit a device inside my CRUD, using Firebase’s Angular 9 and Realtime Database, by clicking on the "Edit" button, I’m redirected to another page so I can change the values of that…
-
1
votes1
answer200
viewsWhy does ngx-mat-select-search not work with my dynamic data?
I installed the ngx-mat-select-search and followed the example of Stackblitz. The example worked perfectly, just as it is in the stackblitz. After that I changed my code to load the data…
-
1
votes2
answers69
viewsForm not returning Angular data
I’m making a form and after saving the client I want to list the customers. I performed the code but on the screen is not returning the data but is appearing the line after registering a new client,…
-
1
votes1
answer99
viewsMinimum input date value should be today
I have a date type input, and I need it not possible to select date that is not from today back, I tried that way, but I did not have much success: HTML: <input [(ngModel)]="atv.dataini"…
-
1
votes1
answer50
viewsHow do I put a class to work in front of a condition using ngclass
I’m writing an angular code and I’m trying to make a situation where, by choosing the name of a city, depending on its size, the size of the space that bears the name increases depending on the name…
-
1
votes0
answers21
viewsASP.NET Core API for access to more than one Angular Apication
I have an API that when launched, it goes up at the following address: http://localhost:49013/api/values. I realized this is parameterized in the file launchSettings.json, that is like: {…
-
1
votes1
answer203
viewsShare button event between components in an Angular project
I need guidance please, I have a component structure in an Angular design: 1) Head component 2) Body component and within it the Rodape component The button inside the Header component needs to…
-
1
votes0
answers224
viewsError using ngFor at angular: Can’t bind to 'ngForOf' Since it isn’t a known Property of 'tr'
I am getting the following error when using ngFor directive at the angle: Can’t bind to 'ngForOf' Since it isn’t a known Property of 'tr'. This is my code: usuario.componentts. import { Component,…
angularasked 4 years, 6 months ago João Filipe 123 -
1
votes0
answers72
viewsHow to clean a reactive Forms after a successful action in ngrx effects?
I own this Forms reactive: const createFormGroup = (dataItem?: Usuario) => { if (dataItem) { return new FormGroup({ id: new FormControl(dataItem.id), nome: new FormControl(dataItem.nome), cidade:…
-
1
votes1
answer63
viewsEvent (click) being undone by (Blur)
In an Angular form 9 I have a component that in your (Blur) performs some calculations with values existing on the screen. It also makes a subscribe for the back obtaining some information necessary…
angular typescript angularjs-directivesasked 4 years, 5 months ago Carlos Eduardo Germano de Souz 11 -
1
votes1
answer63
viewsAngular 10 - table error
I am making a table and using json-server as backend at angular 10. The table does not show the data and the console points an error in the tag. I can’t figure out the mistake, someone can help me?…
-
1
votes2
answers1567
viewsAngular 9 - mat-form-field must contain a Matformfieldcontrol
I found some posts on the internet talking about this subject, but I found no solution to my case. I have a form and when I start the APP I get the message -> mat-form-field must contain a…
-
1
votes1
answer106
viewsSpinner Angular material does not work in synchronous calls
I have a synchronous call new SyncRequestClient().post<HistoricoModel,Response>(solrRequest, request); and I need a spinner created for that call. Appear before the call is made and disappear…
-
1
votes1
answer56
viewsHow to insert HTML tags into an Anguar array?
Good night! I need to insert into an Angular-to-tag array <sup></sup>, I searched but found no solution. In the browser being rendered: Decree n<sup>the</sup> 32.231,…
angularasked 4 years, 2 months ago Munir Baarini 673 -
1
votes0
answers18
viewsS.P.Angular works on the most non-web localhost
Good morning I created a SPA with angular running normally on the localhost on my machine, but I put in the guithub and it didn’t work, So far I thought it’s for the guithub and for static pages and…
-
1
votes1
answer274
viewsSort Angular Component List
This is Galera speaking! My question is this:: imagine a DIV that within it there are several components like the example below: <div class="row"> <app-fogao></app-fogao>…
-
1
votes1
answer28
viewsEnumerate API information in Angular
I have an html code at the angle with information coming from the API. I would like to enumerate this list according to your quantity without creating an id in the bank. Example: 1 nameDocarro1,…
-
1
votes1
answer194
viewsHow to use a date mask at Angular 10
I have a form in my application where the user can edit various data, including his date of birth. In the edit date field I am using this input: <div class="col-md-6"> <label…
-
1
votes0
answers169
viewsHow to display images dynamically at the angle with ngFor directive
Well, I’m trying to create a photo slider, which I need to leave dynamic so I don’t have to endlessly copy and paste a few snippets. I have an array with the names of the images: array: any = [{id:…
-
1
votes0
answers23
viewsDoubts about execution of Function in Angular/IONIC
I am studying Angular with IONIC and I have some questions about function execution and I would like to know if someone has how to explain me: I have that function: public faltas: number; public…
-
1
votes1
answer37
viewsAPI request at Angular
Next, I’m not getting a request for an api, a get. Follow the api’s code and answer. User model.: export interface ResponseUsers { data:User; } export interface User { id: number; nome: string;…
-
1
votes1
answer61
viewsUnsubscribe in Observable with Firebase
Hello I need help with a problem that is happening to me. I have a code to listen to changes in the firebase database. So, I have to subscribe to an observable that brings me the BD data. However,…
-
1
votes1
answer43
viewsAngular: Attribute is not being updated on the screen, but is in the component
I am using the notation of "double mustache" to show an attribute of a component that is being updated eventually. The problem is because the data updates to the attribute in the component, but when…
-
1
votes1
answer63
viewsHow to work with filter in an array typescript?
I will prefer to show first the error message you are giving. error TS2349: Cannot invoke an Expression Whose type Lacks a call Signature. Type '((...items: any[]) => number) | (...items:…
-
1
votes1
answer50
viewsUpdate Application Version Automatically - Cordova
The script below saves the version to a txt, however is giving some error that in the file txt appears as : "ECHO is disabled". @ECHO OFF CALL npm version > version SET /p ver=<version DEL…
-
1
votes2
answers42
viewsMethod returns [Object Object]
I am building an application that should create a list of Pokemons, but I have the following problems: My table that should display the Pokemon list does not display anything. When I do the…
-
1
votes0
answers69
viewsProperty 'utm' does not exist on type 'typeof
Greetings, I am beginner in both Angular and Typescript I come from java. I’m doing the front-end of a project using Angular 10, in it use leaflet to display maps but a need to install dependency…
-
1
votes1
answer113
viewsPrimeng grid does not work
I am using several components of primeng normally as buttons, inputs, menu, etc. All working normally in my design at angular 10. Except the grid is simply not organizing anything on the screen, for…
-
1
votes1
answer34
viewsAutomating in Selenium with C# an Angular 6 page that has no fixed element
Good afternoon, I am trying to create some automated tests on a page that does not have fixed Ids, the only safe way is being Xpath but the same will change as soon as a new button enters. Currently…
-
1
votes0
answers50
viewsVariable returning Undefined
I need to reclaim the value of one p which sits within one of my Components, that p receives the value of my API when the page is loaded. To do this, I made one [(ngModel)]="user" and created a…
angularasked 3 years, 10 months ago Bruno Eduardo Rosselli 179 -
1
votes1
answer54
viewsreq.body of the empty Node.js in the angular
Good afternoon I am creating an API in Node.js and I am having problems with req.body received by express. The problem comes down to not being able to get the post Rest variables sent by angualr9,…
-
1
votes0
answers22
viewscss dynamically angular 8
I’m having a problem registering my dynamic css tried to leave extension . scss and . css but both did not work. Theme.service.ts import { Injectable, Inject, EventEmitter } from '@angular/core';…
-
1
votes0
answers17
viewsPre-trial e2e tests successfully run on site but shows Azure pipeline error
On my spot, when I turn the remote npm run e2e it runs the normal test and successfully runs the script: "e2e": "concurrently \"webdriver-manager start --standalone\" \"ng e2e\"" However, in the…
-
1
votes0
answers51
viewsValidate angular input by Javascript (Chrome console)
I am creating a code to insert values in an Angular form. I input these values from the Chrome console... only when I input it that way Angular doesn’t validate the information. How can I make…
-
1
votes1
answer175
viewsHow to create a search bar with Angular (typescript)?
I have a code that is a Kanban and I need to apply a filter to find its titles (which for now is in the component), I would like to create a search bar that works only on the front end, because I…
-
1
votes0
answers25
viewsRedirect problem at Angular
I’m having a problem rerouting the Angular Below is the registration-client.componentts file.: import { Component, OnInit } from '@angular/core'; import { debounceTime } from 'rxjs/operators';…
-
1
votes1
answer94
viewsAngular: Cannot link 'formGroup' as it is not a known form property
I’m making a small app, which takes a message typed in the form and records it on the console. I tried to import several items and found similar problems to mine on the internet but they did not…
-
1
votes1
answer186
viewsProblem when trying to receive flag with transparent checkout in Pagseguro API
The problem is this, I am trying to implement the transparent checkout sandbox of the Pagseguro API, but when arriving at the step where the flag of the card is obtained, it always accuses error and…
-
1
votes0
answers29
viewsRequest entering infinite loop with Httpclient
I’m getting a get for my local API but the service method seems to loop running countless requests to the server I have the app.component.html and inside I have the following code <div…
angularasked 3 years, 9 months ago Bruno Lourenço 31 -
1
votes0
answers23
viewsHow do I access an application that is running in a Docker container?
is my first post here, I hope you can help me. Environment: Windows 10 Angular Docker for windows git bash Problem: I’m learning to use the Docker. To make the proof of concept, I created an angular…