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
answers1717
viewsNgmodel with angular checkbox
I have a checkbox that is iterated on an ngfor: <div *ngFor="let tela of telas; let i = index; trackBy: getIndex" class="custom-control custom-checkbox check"> <input type="checkbox"…
angularasked 6 years, 2 months ago veroneseComS 2,752 -
1
votes1
answer93
viewsAngular: Connect multiple fields to a reactive form
The problem is that I have several select Multiple and when I select some options from a select they are added to Reactiveform correctly, but when I select some option from another select they are…
-
1
votes1
answer732
viewsSend angular form
Good I’m sending a form via angular, but the data is not getting updated in the backend? <form [formGroup]="categoriaForm" (ngSubmit)="salvarCategoria()"> <tr *ngFor="let data of config;…
-
1
votes1
answer990
viewsError making an Angular POST request (Syntaxerror: Unexpected token s in JSON at position 0 at JSON.parse)
Angular: public urlConvenio: string = "http://localhost/teste/sistema/backend/controller/convenio/listar.php"; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' })…
-
1
votes4
answers3388
viewsCannot read Property 'name' of Undefined
Gentlemen, I’m making this mistake by running my registration form.. ERROR Typeerror: Cannot read Property 'name' of Undefined at Forms.js:3282 at Forms.js:3222 at Array.foreach () At…
-
1
votes1
answer1350
viewsError when trying to update a Wordpress post using the WP REST API plugin
Hello, I’m new with Wordpress and need (for yesterday) solve this problem. Help! I’m creating a simple Angular 2 (V6+) integration that accesses the plugin-generated api WP REST API and the json I…
-
1
votes1
answer574
viewsIonic 3 Http request does not add header Authorization
Hello, I have a serious problem doing an HTTP REQUEST POST when I need to add a custom Header. My Backend API, has some blocked routes and requires authentication via Token, I need to pass it in my…
-
1
votes2
answers1393
viewsChild component calling another child component’s method
I have 3 Components, a Component Father, B Son and a C Son export class A Parent implements OnInit { constructor() { } } In Componen B I have a method to create user export class B Parent implements…
-
1
votes1
answer424
viewsProblem with routerLink at angle 6
I’m having the following mistake: Can't bind to 'routerLink' since it isn't a known property of 'a'. (" <h6 class="text-center"> Do not have an account yet? <a [ERROR…
-
1
votes1
answer223
viewsSpring boot + Angular 6 + Heroku
I created a web application where the front uses angular 6 and the back uses spring boot. My goal at the moment is to put the application online. On the local server when I run the spring boot the…
-
1
votes1
answer32
viewsitems Hidden by Filters - error console
I am creating an Electron application with angular2, where I make requests to an api. When disconnecting the machine from the internet, (because I want the application to work differently without…
-
1
votes3
answers1021
viewsCustomized Angular 2/4 validator
I’m trying to implement a custom validator (Cpf and cnpj) in an angular project using Formbuilder, but when testing the validator, it can’t get the field value. I created the validator as follows (I…
angularasked 6 years, 1 month ago jflizandro 299 -
1
votes1
answer162
viewsProduction build problem when using Cryptojs
I have an application written in Angular 6 and there was a need to send a hash to the client. The contractor approved only the use of the library crypto-js. I did the implementation and everything…
-
1
votes0
answers286
viewsError when testing GET method with Jasmine/Angular
I am trying to compare the type of method when there is a call with the api url. import { async, ComponentFixture, TestBed, getTestBed } from '@angular/core/testing'; import {…
-
1
votes2
answers1067
viewsBootstrap 4 Tooltip does not work properly at Angular 6
Below is the implementation of bootstrap in my application (angular.json) "styles": [ "src/styles.css", "./node_modules/bootstrap/dist/css/bootstrap.min.css" ], "scripts": […
-
1
votes1
answer285
viewsAngular core module error
I am implementing the CORE module but is giving error: ERROR : Unexpected value 'Coremodule in C:/dev/master/src/app/core/core.module.ts' Imported by the module 'Appmodule in…
-
1
votes1
answer742
viewsHow do I get the Header of a Sponse with Angular 2+?
How do I get a response header with Angular 2+? In my case, I’m using version 6. I would like to take this Authorization data to be stored in the Browser Localsession. I am using the following…
-
1
votes1
answer278
viewsDynamic radio button not checked with angular
I have a radio button that is displayed dynamically according to the json below: { "cd_pauta": 64, "nr_numeracao": 10, "cd_subtipo_pauta_periodo_letivo": 1, "ds_observacao": "Mbappe > que…
-
1
votes0
answers15
viewsHow do I apply renderer2 at the angle?
From what I understand can not use the server-side to directly manipulate and Rendering native elements such as renderer2? import { Component, Input, ElementRef, HostBinding, OnInit, Renderer2 }…
-
1
votes0
answers1344
viewsHow can Postman send requests without Cors problems?
I currently use Angular 2+ in some applications and am experiencing difficulties in solving Cors problems. When the request is made by Postman, everything happens as expected, but when I try through…
-
1
votes0
answers65
viewsAngular 6 - Can Deactivate Guard is not working
I’m having trouble getting Can Deactivate to work on my app. In the form.component.html file I have the following code: <div class="form-group"> <label for="quoteType">Quote…
-
1
votes0
answers75
viewsImport an angular design within another angular design
I would like to know if it is possible for me to import an entire project in angular in another project, exemplifying let’s say I have a financial project and a stock project both ready and running…
-
1
votes1
answer560
viewsTemplate parse errors (Angular CLI)
I’m studying Angular by doc, but when I arrived in Add HeroService.getHero(), the application gave refresh and presented the following error: Uncaught Error: Template parse errors: Can’t bind to…
-
1
votes1
answer89
viewsReorganize my array’s index
I have two cards in my app. The first card has index 0, the second card has index 1. There is a variable called listAtributos which has the following structure: 0: {indexvariacaoatributo: 0, id: 5,…
-
1
votes1
answer109
viewsForm control required depending on the selection of another angular form control
I have the following mat-checkbox: <mat-checkbox formControlName="formControlIdentificador" color="primary" class="correcaoClasseCheck" labelPosition="before"></mat-checkbox> <input…
-
1
votes1
answer34
viewsRepeat structure does not work when my object is copied without reference
I need to remove an attribute from my object (indexvariacaoatributo), but I need it to remain in the root object. This is my algorithm that receives in variable my object and then I remove the…
-
1
votes0
answers40
viewsFilter items by category with angular 2+
I am new at the angle, and I need to do a filtering. I have a program listing and I want to filter these programs through a menu. For example, in the menu you will have the categories: football,…
-
1
votes1
answer191
viewsWhy would it be interesting to add or remove HTML element from the DOM?
I am starting my studies in Angular 7 and in a class on Structural Directives, I learned that I can add or remove elements HTML of DOM. I understood that there are 3 main, the ngIf, the ngSwitch and…
-
1
votes1
answer69
viewsCheck JSON Login Result with Angular 2x
My service to enter has: entrar(data: any): Observable<any> { console.log(data.email, data.senha); return this.http.get(`${this.baseUrl}/` + '?email=' + `${data.email}` + '&senha=' +…
-
1
votes0
answers12
viewsMy empty default route is falling into the last set loading Lazy
I have the following standard route: const dashboardRoutes: Routes = [ { path: '', loadChildren: 'src/app/components/dashboard/bemvindo/bemvindo.module#BemVindoModule', canActivate: [AuthGuard] },…
-
1
votes1
answer98
viewsIterate values of two requests in *ngFor
I am making two requests in the bank, one brings the orders grouped only for view on the front, the other brings all values, the last need to show the total of each request along with the view of…
-
1
votes1
answer28
viewsOninit variable upgrade - Angular 2
I have the variable: compromissoInicio = ‘’; In the onInit, have: this.enviaForm(this.funcoes.homeAtualiza); That is, if homeAtualiza for true, the system updates the information as below: ...…
-
1
votes0
answers30
viewsHttp request falling into catchError
I am trying to make http request inside httpInterceptor, but always falls in catcherror, is printed on the console the "crashed in err". intercept(req: HttpRequest<any>, next: HttpHandler):…
-
1
votes0
answers42
viewsAngular continues my function before the dialog response
I have a function that calls a dialog if the SKU of a product is changed, but the function is being continued before the dialog result. Is there any way to wait for the result and only then continue…
-
1
votes1
answer435
viewsRecover Header from an angular Http Response
I need to recover the token that comes in Authorization and save in localstorage, but, I’m not getting. My login method within my service is: public login(email: string, password: string):…
-
1
votes1
answer29
viewsFilter number of items with a certain property
Good afternoon, everyone, I am trying to filter the number of items in an array, which has a specific property and with a certain value (in this case: 'status: Open') in my array, to insert into a…
angularasked 5 years, 11 months ago Pedro Costa 35 -
1
votes1
answer198
viewsSeparate Methods of an Angular Component 6
Hello everyone, I have a Component with 1266 lines, due to its large volume of methods, I need to separate these methods to facilitate a future maintenance, only problem in this is that I have local…
-
1
votes1
answer143
viewsReactive validation at angular with formgroup
I’m trying to put an error message in the template, but I’m not getting to the Validator I created. This is the Validator: criarFormularioDeUsuario() { this.formularioLogin = this.fb.group({ email:…
-
1
votes1
answer63
viewsIonic 3 Missing Localstorage
I have an Ionic 1 application that saves some information in the Torage locale. I rewrote the same application in Ionic 3 with the same package id(widget id in config.xml), but when installing the…
-
1
votes1
answer120
viewsAngular 6+: Page update goes to the application’s login area
I performed the composition of my Canactivate and Canload, through the Loggedinguard class. The problem is that whenever I refresh the page, I am redirected to the Login page, even logged in. Below…
-
1
votes1
answer304
viewsTimer with active session time: Cookie expiration time - autal moment
I am working with Angular and, when I store the access token in a cookie, I also save (in another cookie) its expiration time (30 minutes). I want to make a timer that shows the user how long he…
-
1
votes0
answers100
viewsSave result from Firebase and Ionic calculation
I’m trying to save a result from a simple sum in Firebase but I can’t recover the value and insert it. Where I’m missing? Home.html <ion-content padding class="content"> <form…
-
1
votes1
answer356
viewsHow to convert a json object to array
I’m trying to create methods to filter but from what I understand, it needs to be an array, as I do to transform into array and have access to array methods? import { DataSource } from…
-
1
votes1
answer106
viewsIonic Directive for numerical masking is not accessed from other pages
I created a project with Ionic with two pages: Login and registration. The structure is this In both I tried to add a directive that creates a mask for CNPJ. Follows code of the directive import {…
-
1
votes1
answer437
viewsSelect using Enum
I have a form where one of the fields is a select, and this select is an Enum, I can popular it but can not send the value, always goes with value 0 when I do the post. I wanted a select with two…
-
1
votes3
answers144
viewsforce ssl with htaccess and angular7
Well I have a website hosted at UOL, and I’m going through a strange problem. The structure of the site is so: | index.html | .htaccess | |app1 | | .htaccess | |index.html | |app2 | | .htaccess |…
-
1
votes0
answers29
viewsHow to set an array of pages in a function and return to a variable, NAVCTRL IONIC
I’m making an application in which the app component has a side menu that uses a Let to fetch the array of pages, however I cannot access them from my previous, not getting the return. //I want to…
-
1
votes0
answers124
viewsRecord API response with Angular/Ionic
I’m having a question with the Angular/Ionic I’m using to build an app. I own the following: import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from…
-
1
votes3
answers4406
viewsError Full Authentication is required to access this Resource
Hello, I have a backend made with Spring and I Gero a file . jar and 'raise' it via Vscode to the front made in Angular. When I try to access my page (everything is localhost), I get this return:…
-
1
votes0
answers245
viewsPre-select first element of the array
My select <ion-item> <ion-label floating color="primary" interface="popover">Opções de Parcelamento</ion-label> <ion-icon name="pricetags"></ion-icon> <ion-select…