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
-
0
votes2
answers608
viewsHow to pass values created by ngFor as function parameter Ionic 3 + Angular + Firebase?
it’s my first time asking on the forum so if I’m doing something wrong please correct me. I have the following excerpt from my HTML page: Request: <ion-list *ngFor = "let p of produtos |…
-
0
votes0
answers116
viewsPOST com Angularjs e Laravel
I’m trying to send via POST to my backend Windows, but on the console it points out the error: POST http://localhost:8000/new 500 (Internal Server Error) ! ! Here is my code from Angularjs…
-
0
votes1
answer308
viewsWhat does "!!" mean in Typescript?
Example: this.autenticator.logarExemplo(form.nome, form.senha, usuario.idx, usuario.idy, !!usuario.login).subscribe( executar tarefas; ); What would be the !! ? This symbol belongs to Typescript…
-
0
votes1
answer388
viewsWhat is the difference between ngOnInit and Constructor
The problem I encountered was the following: Needed to validate a token when the page was started if the token was validated then it would be visible a second Forms if not just the first Forms where…
angularasked 5 years ago Giovanni Dias 712 -
0
votes1
answer592
viewsCheck if a username already exists in the angular 2+ php database
I need to check if a user already exists before registering. I have the following methods: Register.component.ts: import { AlertService } from './../alert.service'; import { Component, OnInit } from…
-
0
votes3
answers7675
viewsAngular 6 - Ngfor only Supports Binding to Iterables such as Arrays
Error: Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays. I have model: import { Classroom } from…
-
0
votes3
answers425
viewsConsume api - Angular
Good night I’m consuming a film api at Angular. However I can not display in the template, the console.log is showing right, but I can not pass the value to template My Component : import {…
-
0
votes0
answers351
viewsError when viewing API in Angular
Good morning, I’m trying to access my API through the angular method get of the http module, my files are in my repository github in case anyone wants to take a look. I am following this tutorial…
-
0
votes1
answer53
viewsReactiveforms Angular
Hello, I am trying to create a reusable form Component using Reactiveforms. Like when I want to use a form, I will just pass an array of my inputs from that form. But I’m not sure if it’s really…
-
0
votes1
answer464
viewsAngular Scripts
Hello, I have an angular application where I am using jquery scripts to implement a datapiker and a timepiker, these presented below: I have a separate script for their startup, presented below:…
-
0
votes1
answer75
viewsAngular installation
Folks I’m in need of help !! I am trying to install the angular, and the installation does not leave this screen below. What can it be? Obs: I already have the Nodejs installed…
angularasked 4 years, 12 months ago Felippe Casanova 9 -
0
votes1
answer38
viewsProblem implementing Angular editing
Look at the image below; When clicking edit in addition to being directed to the editing page was to load the form, but the form is not being loaded, and see how it is. It was supposed to look like…
-
0
votes1
answer29
viewsIs it possible to change the value of a variable that was decorated with Input()?
I have the variable disciplinesTurma which was getting a value from the parent component. I wanted to remove one of its values, the method even removes, but only within itself. You can do it?…
-
0
votes1
answer324
viewsProblems Running Angular Localhost
I can’t link Angular to my project . This is my Structure : I downloaded Angular via Bower and to link it I used the following Script in my Views src=".. /.. /..…
angularasked 6 years, 5 months ago Octavio Augusto 3 -
0
votes1
answer63
viewsHow to change the visibility of an input by selecting an item in select and not changing all in ngFor
When you select the 'title' item it is to hide the input. But when I select another item from another ngFor index, the input selected 'title' is displayed again. Example…
-
0
votes1
answer42
viewshow to compose a fieldset with 2 color themes?
At the angle I have this code below <fieldset id="fieldset" class="blue-light> <legend>Informaçoes X</legend> Texto texto texto </fieldset> i have that Cod up for blue…
-
0
votes0
answers106
viewsHow to implement Angular ng2-img-max?
My problem is this; I am able to save and display the images using my API, but at the time of displaying the images on screen it gets burst, IE, my images are 4800 x 3255 resolution, It is a very…
-
0
votes1
answer61
viewsExport Angular input value
Good night, you guys. In Angular 6, I have the following code: import { Component, OnInit } from '@angular/core' import { FormGroup, FormBuilder } from '@angular/forms'; @Component({ selector:…
-
0
votes1
answer83
viewsHow to store a variable in a specific chunk of the template?
I’m accessing data from an object: <div *ngFor="let objeto of objetos"> <div [ngClass]="{'minha-classe': !!pegaDados(objeto.id).isValido}"> {{ pegaDados(objeto.id).nome }} </div>…
angularasked 4 years, 11 months ago Arthur Siqueira 1,609 -
0
votes1
answer312
viewsWorking with datepicker on ng-bootstrap
I’m working with this component example: https://stackblitz.com/edit/angular-ytr3qa I need to add three features. The first I believe has to do with class, as in this example, if the day is outside…
-
0
votes2
answers194
viewsFeedback a observable Boolean method
I have a method that should be returned a boleano according to the service response. I am unable to return true or false outside the observable. Any hints? checkPermission(route): boolean { let…
-
0
votes2
answers45
viewsAngular Compomente Personalized emitEvent: false
I need my custom component when making a value assignment it does not send events, when I set it in patchValue or setValue. patchValue { onlySelf: true, emitEvent: false } Stackblitz Demo when…
angularasked 4 years, 11 months ago Elvis Reis 46 -
0
votes1
answer681
viewsScript file on an angular Component
Hello, I have an Angular System that requires a specific script! This Component is not started on the first screen of my application, so I cannot put my script file in the Bundler, because by the…
-
0
votes1
answer75
viewsUnit Test Rxjs + Ngrx Subscription in Angular with Karma
I’m having difficulty executing unit test for the following function: subscribeToUsuario(): void { this.subscription.add( this.store$.pipe(select(selectors.selectUsuario)).subscribe(state => { if…
-
0
votes2
answers81
viewsHow to refactor my method by eliminating the setTimeOut that is controlling the life cycle?
A profile is coming from a parent component: <app-telefone-form [perfil]="perfil"></app-telefone-form> But when it arrives at the child component, it is necessary to delay the…
-
0
votes0
answers210
viewsError while using the [routerLink] directive
Hello, I’m having problems when I try to add directive Routerlink. Whenever I add it I’m getting the error below: compiler.js:486 Uncaught Error: Template parse errors: Can't bind to 'routerLink'…
-
0
votes1
answer652
viewsData update in the angular refresh database
I wanted to know how I do so that every time I update the data in the database it updates the Component on the angular or refresh page, or better that the service is in real time. I’ve seen several…
angular typescript asp.net-core angular-materialasked 4 years, 9 months ago Luiz C. de Souza Javorski Jr 24 -
0
votes0
answers31
viewsTwo subscribes in the same role?
I have a function in Typescript where your return is directed to an input in formGroup, but I cannot use the same return in another field, only if you have the same name. I need to use the return in…
-
0
votes1
answer123
viewsHide div after keyboard opens. HTML
Good night! I’m developing an app using Ionic / Angular, but I’m having a problem. When clicking on the keyboard, the form elements overwrite the menu and the logo. I want to hide the Divs…
-
0
votes0
answers25
viewsCROSS error via localhost
I am consuming an angled API and gives me the following error to : Access to Xmlhttprequest at 'http://localhost:8080/batches' from origin 'http://localhost:4200' has been blocked by CORS policy: No…
-
0
votes0
answers909
viewsIonic 3 Masks and CPF Validation
Good afternoon guys, I’m making a PWA app with Ionic 3 and I need to insert some masks in forms and validate the user’s CPF. I have tried various forms and libs, but have not succeeded in any. Could…
-
0
votes1
answer89
viewsHow to place a variable in the middle of the route at the angle
Hello, I am developing a front end that will connect with several equal API’s, but with distinct banks( The Client has the API installed, but this front is for employee access, and for the sake of…
-
0
votes1
answer57
viewsError using POST Angularjs
My controller is like this: app.controller("listaTelefonicaController", function ($scope, $http) Inside it is my adding function ctrl.adicionarContatos = function (contato) { contato.telefone =…
-
0
votes1
answer503
viewsExample of use - angle mask
I have these two fields, phone and zip code, where I would like to put mask, but as I started using angular a short time, I do not know, and I found nothing explanatory on the internet, that would…
-
0
votes1
answer32
viewsA single Arrayobject for presentation and modification
Hello, I’m venturing into Angular 8, and I came across a stalemate, I get the following obj array of a service: this.productsService.getProducts().subscribe( (products: Product[]) => {…
-
0
votes1
answer91
viewsHttp to Httpclient (Angular)
I’m trying to update the requisitions Http for HttpClient in Angular. Currently the code is: return this.http.get(`${this.url}/grupos`).map(res => res.json()); After researches I’m trying to…
-
0
votes1
answer41
viewsIs there some kind of ALT property for a form field in HTML?
I have a form with some fields that will be filled by the user. Sometimes the filled-in information is larger than the field. I wonder if there is any strategy to mouse over the field, and show the…
-
0
votes2
answers709
viewsHOW TO APPLY A BACKGROUND COLOR TO AN ANGULAR COMPONENT?
I intend to leave the black background of my application in angular. I inserted a "body" tag, which I don’t have at an angle, in order to apply the style (body {background-color: black}). But it…
-
0
votes2
answers351
viewsLaravel Token Validation (Passport)
I developed an api in Laravel. It’s all right, it’s all working. The Front-End is being developed in Angular. I would like to know if there is any method provided by passport for validation of acess…
-
0
votes0
answers57
viewsAccess value in HTTP response
Hello!! I’m implementing a login method. When the user logs in, the backend generates a JWT and sends the token to be stored in the HTML localStorage. I never used TS/Angular 4, Angularjs had no…
-
0
votes1
answer132
viewsHow to emit a sound when passing the mouse in ANGULAR?
I would like it to make a sound by hovering the mouse in the menus of my application, but I don’t know how to do it HTML: <div class="itemsMenu" ng-mouseover="playAudio()"><i class="fas…
-
0
votes1
answer130
viewsMigration from material angular 5 to material angular 6
I am migrating from angular 5 to 6 and material 5 to 6. The problem is that the second error occurs when climbing the application. TypeError: Cannot read property 'appendChild' of null at…
-
0
votes1
answer40
viewsNodejs ignores request POST made by Angular
Context: I’m using a virtual machine , ng serve is running on port 4200, and the nodejs on port 8024, when I try to send data to the server nothing happens, the angular part apparently shows no…
-
0
votes0
answers86
viewsAngular - Problem passing message between components
Good evening, everyone. I am, for the sake of studies, doing a simple CRUD for managing authors. I got stuck in the part of sending a success message by registering a new author. My current…
angularasked 4 years, 6 months ago Guilherme Gomes 11 -
0
votes1
answer78
viewsChange sidemenu items in Ionic 5
I am migrating a project from Ionic 3.2 to 5.14, and am having difficulties to use observables instead of Events. In the original code, after the user logged in, I changed the name and image of the…
-
0
votes1
answer402
viewsHow to limit in Angular the number of characters in the text by inserting a "Read more" button to see the rest?
To limit in Angular the amount of characters in the text by inserting a "Read more" button to see the rest and when you see everything, the "see more" button will become the "see less" button". I…
-
0
votes1
answer55
viewsSubscribe to a JS object
I wonder if there is any way to subscribe to the content of an object. For example: I have two objects. object1 { name: ''; address = 'Rua Mario'; email: ''; } object 2 { name: 'Carlos'; email:…
-
0
votes0
answers31
viewsInvalidpipeargument error when using Datepipe
I’m making an application in Angular and I’m trying to show a date, coming from the database, in a table. I have a database, as I mentioned above, which has a field for storing dates, like…
-
0
votes1
answer48
viewsTransform getElementsByClassName into elementRef
I made a code and would like to transform my getElementsByClassName and elementRef, below show how I did and how I tried to adjust tabContent = this.tabContent.nativeElement.innerHTML; for (i = 0; i…
-
0
votes1
answer1321
viewsAngular 5 , Mapping an array of Objects within another array of Objects
Well I’m trying to encapsulate my objects. The first Object it maps the first JSON array. export interface PraticarObject { id_assunto: number; nome_assunto: string; qt_exercicios_concluidos:…