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
votes0
answers293
viewsAngular 4: Error running HTTP POST in JSON File: Not Found 404
Bom Dia Amigos, I am learning Angular, using version 4.4.6 with Angular-Cli and am having problems using http post service. First I created a date folder where I stored my json file and added it in…
-
1
votes0
answers31
viewsProperty is not recognized when using @Input in a directive
Consider the following directive: import {Directive, HostListener, HostBinding, Input} from '@angular/core'; @Directive({ selector: '[myHighlight]' }) export class HighlightDirective {…
angularasked 6 years, 11 months ago Filipe Moraes 8,737 -
1
votes2
answers499
viewsHow to make a Mask input by simulating money with Ionic 2?
I believe the question is already well explained, but I would like to know how I can create a mask using decimal numbers to simulate the actual mints ( 1.000,00).
-
1
votes2
answers113
viewsDoes the component import order interfere with performance?
Today I wondered about a question in the component import order, whether it be this in Angular, React, or Vue. Would the component import order refer to order of use, improve performance or nothing…
-
1
votes1
answer2689
viewsWhat is the use of pipe() and map() functions in Angular 6?
I learned that I have to use these two functions when I’m working with HTTP requests, I learned that I have to use these two functions as a cake recipe, which you use and that’s it, I wanted to know…
-
1
votes3
answers1253
viewsHow to set the first value in the combo?
Guys, I need some help: I’m trying to set the first state in the combo, I’ve put Selected but without success. Can someone tell me what might be wrong, or something to help me solve. My code:…
-
1
votes1
answer779
viewsAngular 5 problems with routes
Guys I have my normal and simple route app.routing.ts import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from…
-
1
votes1
answer102
viewsChangedetectionstrategy from the Angular
When studying Angular 6 I was seeing that it has different strategies of how Component is updated according to the Events, XHR and Observables within my application. After much research I did not…
-
1
votes1
answer2698
viewsHow to call reading HTTP responses
Well I would like to bring some error messages in the JSON to this class below and I don’t know how to do that, my connection to the Database is OK and returning the JSON straight, I would like to…
angularasked 6 years, 10 months ago Ederson Coelho 143 -
1
votes3
answers7042
viewsAngular 6 date and time in English
Good afternoon, I’m starting to develop an application in Angular 6, and I need to display the date and time on the screen. I have managed to present both, but they are in the American standard. How…
angularasked 6 years, 1 month ago carlos giovani casilo 473 -
1
votes1
answer343
viewsAcessiblidade Angular
Hello I’m developing a project and implementing accessibility in it. So far so good, the screen reader works is everything ok. My problem is when I exit screen A and go to screen B, screen B has a…
-
1
votes1
answer4666
viewsHTTP (Post) Bad Request 400 - How to resolve?
I am making a pole, but my server is not emitting an error(400). Below follows the server code. const express = require('express'); const app = express(); const bodyParser = require('body-parser');…
-
1
votes1
answer653
viewsBlock special characters in <input matInput
How do I block special characters in: I tried this way, but it didn’t really work: Pattern=" [a-za-Z0-9]+$" Does anyone have any idea? Thanks in advance !
-
1
votes0
answers244
viewsWorking with Angular validation messages
This is my beer register I set up the error messages with these lines of code, it’s here: import { Component, OnInit, Input } from '@angular/core'; import { FormControl } from '@angular/forms';…
-
1
votes1
answer651
viewsHow to compile a list with data from an Observable?
How to go through data from an Observable and insert into a list? I would like to compile a list of all the arrays within Observable that comes from Cloud Firestore, because I need a list of people…
-
1
votes1
answer685
viewsExample of 5+ angled responsive menu
I took an angular design and the menu is responsive, but the programmer did not do it with angular, did not create a component, he did it separately with javascript and "docked" in the project. I…
-
1
votes3
answers908
viewsI have the following error in my Ionic project "Error: Uncaught (in Promise): Typeerror: Cannot read Property '0' of Undefined"
Hello my Ionic project is with the following error (Error: Uncaught (in Promise): Typeerror: Cannot read Property '0' of Undefined) follows an attached image of the problem. I would like some hint.…
-
1
votes1
answer1879
viewsAngular 6 CLI command to create a Component in a specific folder
Is there any way to create a Component in Angular 6 CLI by specifying which folder it should be in? I searched the net and found the ng g c nome-componente --module=app but this is just to say that…
-
1
votes1
answer93
viewsRemove tag from angular component 6
Is there any way to render only the content of the component, hiding the tags? How it works: <ul> <li-component> </li-component> </ul> Renderiza: <ul>…
-
1
votes0
answers59
viewsAngularjs and Angular in the same project
Currently I have a project that is in Angularjs that we decided to upgrade to Angular 6. However, making this update at once is only impracticable due to the size of the project. Is there a way to…
-
1
votes1
answer41
viewsError for service reference in Angular
Good morning, I have the problem to reference a service at the angle. It follows error: ERROR in c:/Projetos/Livroangular2/src/app/lista-pessoa-vip/lista-pessoa-vip.component.ts (2,10): Module…
angularasked 6 years ago Paulo Velosa 31 -
1
votes0
answers21
viewsError occurring in Angular
Good morning! Angular is asking to update the dependencies, both in the instation and in the creation of new projects: npm WARN deprecated [email protected]: angular-cli has been renamed…
angularasked 6 years ago Paulo Velosa 31 -
1
votes1
answer497
viewsAdd a key/value to a typescript object
I have an array object that I want to add in position 0 a key and value in it. I tried something like: this.testeobj//meu objeto this.testeobj[0].push({oi: 'teste});…
-
1
votes1
answer99
viewsAuthenticate Angular with Steam
I am trying to authenticate my Angular app with Steam, but this generating this error in the log: Failed to load http://steamcommunity.com/openid/.well-known/openid-configuration: No…
-
1
votes1
answer392
viewsThe element is generated with an attribute and the respective CSS with another attribute
I created the component toolbar with the following developer: @Component({ selector: 'app-toolbar', templateUrl: './toolbar.component.html', styleUrls: ['./toolbar.component.scss'] }) Note that the…
-
1
votes1
answer377
viewsDifference between $apply() and $evalAsync()
In an application where I have loaded several indicators from a dashboard I am using the $apply() function to update the data of these indicators but in the console it presents the error "Error:…
-
1
votes3
answers4910
viewsConsuming an API with Angular
I’m trying to consume an API with Angular 5 but it returns me this error: " Error trying to diff '[object Object]'. Only arrays and iterables are allowed at DefaultIterableDiffer.diff". Response…
-
1
votes1
answer42
viewsQuestion about the map function
I have this object { "alunos": [ { "aluno": { "id": 1, "nome": "Genevieve Sipes", "status": "Ativo" }, "mensalidade": { "status": "Débito" } }, { "aluno": { "id": 2, "nome": "Greyson Herman",…
-
1
votes2
answers476
viewsError with checked property and value in Angular
I am trying to use a code to get the value of the selected radio button and I am facing the following errors: Checked property does not exist in type 'Htmlelement'. The property 'value' does not…
-
1
votes0
answers209
viewsAngular Typeerror: _co.disable is not a Function
I would like to understand what is causing this error in my application. Follows the codes: desabilitar(elemento){ var radio = document.getElementById(elemento) as HTMLInputElement; radio.checked =…
-
1
votes1
answer175
viewsHow to work with Angular Arrays with screen printing?
I still know little of Angular and know only the basics, look at the code snippet: listarTodas(): Promise<any> { return this.http.get(this.cidadesUrl) .toPromise() .then(response =>…
-
1
votes0
answers30
viewsANGULAR ROUTES 2+
I’ve separated my route modules: 1 - product.routing.module.ts Where I have the route of /product and its daughters /product/new /product/Edit 2 - app.routing.module.ts Where I have the roots routes…
angularasked 6 years ago Matheus Cruz 11 -
1
votes1
answer3615
viewsCORS error when requesting using Httpclient at Angular
I am trying to perform an HTTP request using "Httpclient" from Angular 4, and I get the following error: Request header field Access-Control-Allow-Origin is not allowed by…
-
1
votes0
answers126
viewsExecute a class function based on a property
Please, I need to execute a function of a class among several classes that I only know is correct from the value of one of its properties. I create the classes for example: public tabelaSerie = new…
-
1
votes1
answer277
viewsCheck http status at the angle
I have the following code, I need to check the status that the server returns to the Webapp, I have the following code: this.http.post (this.url,json) .subscribe ( res => { console.log(res); },…
-
1
votes0
answers26
viewsSharing on Instagram
I was giving a beautiful on the new instagram API https://developers.facebook.com/docs/instagram-api/ and I realized it doesn’t contain some of the resources that I see around. Can anyone tell me…
-
1
votes1
answer4763
viewsHow to Get Another Component Variable
I have the following situation: utils-Nav-user.component.html <nav class="navbar fixed-bottom navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand text-white">ESC - Sistema De…
angular angularjs-directives angularjs-scope angular-routesasked 6 years, 9 months ago Ederson Coelho 143 -
1
votes2
answers1678
viewsObservable, when to use?
Why and when should I use the Observable, what are its advantages and disadvantages and its difference compared to Promisses?
-
1
votes1
answer202
views -
1
votes0
answers185
viewsCreate fields with ngFor
I want to do something where I can every time I click the button to make new fields. What I’ve done is the following: <label for="">Contatos</label> <div *ngFor="let contato of…
-
1
votes2
answers832
viewsDisable Initial validation of the Angular form
this.loginForm = formBuilder.group({ 'login': [null, Validators.required], 'senha': [null, Validators.required], 'estabelecimento': [null, Validators.required], }); Here I have my Validators…
-
1
votes1
answer178
viewsConvert JSON to Object with different structure
How can I convert this JSON: {"cliente": [{ "cliente_cpf": "43900404640", "cliente_nome": "Luiza", "cliente_sobrenome": "Azevedo Carvalho", "cliente_genero": "Feminino", "cliente_nascimento":…
-
1
votes0
answers37
viewsCan I use jQuery code in a . Factory and inject it into the controller?
I’m developing a site using Angularjs ES6, and on this site I needed to perform a function and I wasn’t getting it. I searched the internet for a similar function to understand how I could do and…
-
1
votes1
answer2624
viewsHow to view image with Angular 2+
I have the code below where I need to display an image coming from the database, the image is coming here as byte how to display this image on the screen? <!-- Listar As Bebidas Alcoólicas -->…
angularasked 6 years, 8 months ago Ederson Coelho 143 -
1
votes0
answers27
viewsUse of Directives to create almost everything
I worked a few days ago on a project where we used angular 1.*. The case is that, each table that we created on screen, or any element with data and a certain complexity, was created a directive for…
-
1
votes1
answer704
viewsHiding Component in Angular 7
Good night, you guys! I started studying Angular recently and came across a problem that I can’t solve, I need that when clicking a button inside the header component, the banner component is…
angularasked 5 years, 10 months ago Munir Baarini 673 -
1
votes1
answer104
viewsAngular 4 and Nodejs Express - Problem with CORS
Hello, I have two applications that run locally on different ports. One application is for API’s and another is the web part. When I send the form data to my typescript service, the data is arriving…
-
1
votes1
answer1326
viewsConcatenate a string with number in Typescript
I’m trying to add a 0 in the formatting of my date/month, but I’m not able to concatenate 0 with a string. I tried something like: var dd = dataAtual.getDate(); if (dd < 10) { dd = '0' + dd } I…
-
1
votes0
answers39
viewsError Build Module Dbkey Angular
Good Afternoon. I am trying to build my Angular project, however, it lacks a module called Dbkeys, I tried to reinstall the node_modules package using the command npm install, I tried to clear the…
-
1
votes1
answer259
viewsFade in / fade out effect at Angular 7
I need to make a form disappear gradually by clicking a button, how can I insert this effect using Angular 7 ngIf?
angularasked 5 years, 8 months ago Munir Baarini 673