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
votes2
answers399
viewsTypeerror: sheets.foreach is not a Function typescript [on hold]
I’m trying to display the data of some interns using a card library made by another developer. The application was all done in Angular (including lib). A few weeks ago, everything was working, but…
-
1
votes1
answer14955
viewsAngular 7 - How to make "Else if" with "*ngif"?
I am trying to make an "Else if", to present the items of the category chosen by the user through a radio button. Only I only have "if" and "Else" to present on ng-template. I set up a sequence of…
-
1
votes1
answer68
viewsPass SQL values to another Ionic 3 page
I have an input on a page that is stored in the database and would like to show what was stored on a new page. </div> <ion-list> <ion-item> <ion-input type="text"…
-
1
votes1
answer1540
viewsHow to catch the start and end of the week on Moment.js
I use the following code to catch the start and end of the week. pegaData() { moment().locale(); var agora; var datainicial; var datafinal; agora = moment().format('DD-MM-YYYY'); console.log(agora);…
-
1
votes1
answer360
viewsAngular 7 - toPromise returns no error
I’m using the Httpclient as below. However even with error 404 to toPrimise() gets into the .then() instead of .catch(). Note: Sometimes it worked with the same code. I believe it is something…
-
1
votes0
answers264
viewsVariable does not receive Subscribe() - Angular 7 data
I’m having a problem in my code. I’m using angular 7, in it I’m having difficulties on a screen I import a file. I want to run a "spinner" that will be shown when I click on "send", it runs Spinner,…
-
1
votes1
answer185
viewsHow to change the color of a Row with a ngx-datatable active Selected?
Good afternoon, everyone! I have tried several ways to make a color change of an ngx-datatable Row, but only way I could was to change the color Hover of my Row. What I need is to change the color…
-
1
votes0
answers129
viewsLocalization Devexpress
I am trying to translate the components of Devexpress, I have already contacted their support and it seems that they are not in the mood to make an effort to help... I wonder if anyone here knows…
-
1
votes1
answer579
viewsListing an array within an angular JSON
Good morning gentlemen, I am using the IGDB (Games) api for the realization of an angular site 7(typescript), in it when receiving a JSON I receive only the gender ID, but if in the call…
-
1
votes0
answers22
viewsHow to create Typescript interface that reflects firestore structure
Good morning, I’m getting data from firebase firestore with a structure that I’m having trouble representing as a model in Typescript, that is, an interface. I made a JSON representation to…
-
1
votes0
answers179
viewsRendering Dynamic Array - Angular
I am trying to render a dynamic array in my HTML, every click on ("+") it generates a new item in Formarray. The new fields are being generated in the correct way, but when adding a file its name is…
-
1
votes1
answer669
viewsDirective: lock double click on a button
Hello, I have a directive to lock the double click buttons on my system... However, when clicking a button that is "calling" the directive, it does not do its function (e.g., if the button is…
-
1
votes1
answer153
viewsProblem with IONIC versions
Currently the Ionic is in version 4, but I prefer the Ionic 3 mainly to program the themes of my application. So I did the downgrade for version Ionic 3.1.0. But I’m faced with a big problem, typing…
-
1
votes0
answers234
viewsNgfor showing only one result - Ionic
Personal I need some help from you. I am trying to show you the information of each ion-card on a Footer. The idea is as follows: On the homepage will have ion-card with summary information of the…
-
1
votes0
answers34
viewsBuffer on URI javascript basis
Well I’m trying to save in my bank Mysql a column in Blob, in the bank he’s saving perfectly like this:…
-
1
votes1
answer574
viewsComponent does not render in Angular
I’m starting my studies at Angular and I’m having a hard time. I have my.Component app already created and working properly. I created a new component ng generate Component list-person and am…
angularasked 5 years, 4 months ago Roseweltty Guida 13 -
1
votes1
answer421
viewsConsuming MARVEL API with Angular 8
I’m starting in Angular/cli 8 and accompanying a video on Youtube for learning. In this video says that we should inform the public key and the hash to access JSON information coming from the API.…
-
1
votes0
answers181
viewsCreating a repetitive Ionic table
Let’s get down to the problem: I need to create a table by Ionic that, as in the Instagram album, is divided into 3 images per line, this code was made by angular. Here’s my HTML code in Ionic:…
-
1
votes1
answer737
viewsHow to clear the field at Angular?
Look at the gif image; I am working on an Angular project, what I need is for the user to switch from CPF to CNPJ in addition to performing the fields exchange it can also clear the field when it is…
-
1
votes0
answers152
viewsHow to "walk" within two arrays at once with *ngFor?
I basically have two arrays, and I would like to save their value at the same time *ngFor, I did just like to test something this way: <div formArrayName="alternativeFields" *ngFor="let field of…
angularasked 5 years, 3 months ago Matheus Ribeiro 143 -
1
votes2
answers87
viewsChange ngModel connection
I have a code and I wanted to know how to change the ngModel button-bound. Ex: <input [(ngModel)]="Pessoa1.nome"> <input [(ngModel)]="Pessoa1.idade"> <button…
-
1
votes1
answer644
viewsUnit Service Testing Using Karma (typescript/angular)
I’m trying to test a service GET method: get(url: string, params?: any): Observable<Response> { let options = {}; this.securityService.setHeaders(options); if (params) this.setParams(options,…
-
1
votes1
answer846
viewsFormat input value using [ngModel] and (ngModelChange) while typing
I ran it through the OR and PTSD to see if anyone else had the same thing, but I don’t think so. I have an app with a input so that a certain value is typed and formatted at the same time, as…
-
1
votes1
answer259
viewsangular - How to replace setInterval?
I am currently doing a project and I need to get information from the bank that is updated and for this I am giving a get every 5 seconds using setInterval. But I know this isn’t the best of worlds,…
-
1
votes1
answer243
viewsAngular 7 - mat-table with complex Json
Hi, I’m encountering problems in popular a mat-table with a Json that contains subitens. My API returns:…
-
1
votes0
answers30
viewsSubmit form with file
I have the following form: <form [formGroup]="notifForm"> <div class="box-body"> <app-input errorMessage="Preencha a Descrição" [showTip]="false"> <label…
-
1
votes1
answer3039
viewsError : Can’t bind to 'formGroup' Since it isn’t a known Property of 'form'
I am creating an app in IONIC V 4 In the form using Formbuilder added the tag [formGroup] appeared two errors : <form [formGroup]="formRegister"> and the other : The componet…
-
1
votes1
answer510
viewsHow to align flexbox buttons in Angular?
I’m having trouble aligning the buttons on a screen using flexbox. I’ve tried several property combinations fxLayoutAlign but I can’t get the expected result. What I want to do is align 3 buttons as…
-
1
votes1
answer66
viewsHow to color a button corresponding to a selected value?
My question is as follows. I created a simple matrix with animal names. For each name I push a button dynamically, and manipulate the DOM of this button to get a color for when selected, and a color…
-
1
votes1
answer40
viewsFunction that returns the client name using the . filter method
In my template I have an interpolation that performs a call to function getNomeCliente, passing the ClienteId as a parameter: <ng-template kendoGridCellTemplate let-dataItem> <div…
-
1
votes2
answers104
viewsTranslate date return and manipulate days
I am using a card that returns me actual data of the day, month and year. It’s actually four cards, two with year and month, and two with year, month and day. The problem is that on my return I want…
-
1
votes1
answer719
viewsHow to style a Mat-Gymnator?
I created a mat-paginator-intl to modify the text of mat-paginator as follows: import { MatPaginatorIntl } from '@angular/material'; export class MatPaginatorIntlCustom extends MatPaginatorIntl {…
-
1
votes1
answer80
viewsError using Mattabledatabase in Angular
Type 'Mattabledatasource' is Missing the following properties from type 'Subscription': closed, _parentOrParents, _subscriptions, unsubscribe, and 2 more. I have this error in my code, when I run it…
angularasked 5 years, 1 month ago Ivan Antunes 115 -
1
votes2
answers580
viewsAngular ignores *ngFor in select option
I’m trying to make a field like select in an Angular form with Materialize, and fill it dynamically, but when arriving at the directive *ngFor, Angular now ignores the field: HTML: <!-- campo que…
-
1
votes1
answer967
viewsHow to access information from a formGroup that is embedded in a Formarray
Guys, I have a form created with formBuilder. This form consists of a structure that has an array within an array. My form: export class RoteiroAddForm extends FormComponent<any>{…
-
1
votes1
answer37
viewsAngular route direct to folder with Wordpress
My Angular application is at the root of the domain and I want when typing an empty route it redirects to /home, where in this folder I have Wordpress installed. That is to say always type only…
angularasked 5 years, 1 month ago Alessandro Barros 165 -
1
votes2
answers166
viewsIonic (Angular) - ngModel inside an ngFor
Good afternoon, I would like an orientation, I am learning from Ionic and assembling an application, on my main page there is the following code: <form> <ion-card class="cardsIndex"…
-
1
votes1
answer242
viewsAccessing data from an Angular array
I’m trying to access a data ID that my API responds that it is inside an array: { "name": <name> "email": <email> "token": <token> "message": 'Token válido.' "subscriptions": [ {…
-
1
votes2
answers3390
viewsHow to apply Dynamic Mascara in angular input?
I’m using Angular 8, example of mask would be landline and mobile phone. That is to count the number of characters and apply such mask. I am creating the mask with Ngx-Mask, trying with *ngIf in…
-
1
votes1
answer246
viewsPerform a method after completion of a previous method in Angular
How to make a method to be executed only after the completion of another method? I understand that in Angular we treat asynchronously, that is, a line of code does not necessarily wait for the…
-
1
votes1
answer149
viewsWhat is the function of daughter routes at the angle?
Does the angular daughter route function serve only to render the daughter route component on the parent route component? Because I wanted to do the exact opposite. I would like when I go from the…
-
1
votes1
answer54
viewsIndex repeating when the page is exchanged in ngx pagination
my project is the following, is a site q uses the google Books api the problem is that when I add an object from the book array to the bookmark array, the index is reset when I change the page in…
-
1
votes1
answer137
viewsSave data from Datetime in variable
Good morning, I am finishing an Alarm application where the user selects the time the Notification should appear, I am using the native component of Ionic, the ion-Datetime. But I can’t find…
-
1
votes0
answers211
viewsIncorrect Angular Brasilian time after daylight saving time
I have an application in Angular and need to display the correct time in the system, there was no change in daylight saving time in Brazil and I am informing the time in the system one hour late.…
-
1
votes1
answer46
viewsSend text by Routes (Children)
I send the title like this: const routes: Routes = [ Route.withShell([ { path: 'ex', component: exemple, children: [ { path: '', component: exComponent, data: { title: extract('ex.PAGE_TITLE') },...…
-
1
votes1
answer297
viewsPopular table at angle 8
Good morning, I am trying to popular a table on my system, because the backend done in spring sends me a JSON as follows, an object with several lists inside, example: { "contasDespesasQuitadas": […
-
1
votes1
answer101
viewsTransforming object array into a specific data structure
I have some information saved in the database that I would like to display in a structure defined by me. When making a SELECT * FROM table an array of information is returned, as shown below. I…
-
1
votes1
answer319
viewsChange Firebaseui template language
I need help changing the Firebaseui login template in Angular to English. Content from: user-signin.component.ts import { AngularFireAuth } from '@angular/fire/auth'; import * as firebase from…
-
1
votes0
answers49
viewsAngular CSV import error
I have a ". csv" standard that I make available to the client to download, fill and after completing the fill, import to the platform. It turns out that CSV when opened by excel, creates an empty…
-
1
votes1
answer216
viewsExport modules at angular 8
I am trying to export a module with your Components to use in the app-module, but I am having the following error when opening: 'app-AmbevComponent' is not a known element: 1. If…
angularasked 4 years, 11 months ago user33105