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
votes1
answer44
viewsAngular Delete Operation Returns Undefined
I need to delete an item from my API, so I did a service that runs a delete according to the ID it receives from my application’s ID field. I also made a method that invokes this service and…
angularasked 3 years, 10 months ago Bruno Eduardo Rosselli 179 -
0
votes0
answers34
viewsAPI Goes Blank when Updated
I am crud using Angular and am having trouble updating the values of my API objects. Basically, when I run the update method it updates in the API, but the field that has been updated, instead of…
angularasked 3 years, 10 months ago Bruno Eduardo Rosselli 179 -
0
votes0
answers37
viewsAdjust the user field in the "dummy" menu that is: "User: Undefined"
Well I’m having trouble on this page of a project I’m participating in, when I enter as administrator, the user the header needs to appear User:, but he gets like undefined and I don’t know where…
-
0
votes1
answer23
viewsError Initializing Model Class. Error (2693)
I have the following error in my code: **'AlunoModel' only refers to a type, but is being used as a value here.ts(2693)** I need to create an object to put in my API, so I created a Model of my API…
angularasked 3 years, 10 months ago Bruno Eduardo Rosselli 179 -
0
votes0
answers29
viewsPutting fixed items on a list
Could someone help me? I have the following problem. I have to put two fixed items in a list, I’ve tried to use the position Fixed and Sticky but it didn’t work. I’ll leave the code below. I need to…
-
0
votes0
answers37
viewsWhen displaying the total value the code is looping - ANGULAR 11
Good afternoon! I’m retrieving some values from mongodb and summed to display the result on screen, but the code has looped. Someone could help me! Follows the code! get recuperaValorTotal(){ let…
angularasked 3 years, 10 months ago Developper 321 9 -
0
votes1
answer58
viewsTable displays only the last Repeat Loop value
I made a table that searches 100 items from within my API, now I need to number the rows in that table. For that, I created a variable number called columns and made a FOR: colunas: number;…
-
0
votes1
answer40
viewsformArrayName(fb.array) within another formArrayName(fb.array) cannot generate another product field
Follow the form I need to mount in html formulario( lancamentoForm?: Lancamento ) { this.formularioLancamento = this.fb.group({ id: [lancamentoForm.id], dataCadastro: [lancamentoForm.dataCadastro],…
-
0
votes1
answer56
viewsHow to dynamically update DOM <datalist> with Angular?
I am learning Angular and with difficulty to update the DOM of an Angular form. My goal is to make an email autocomplete, after putting the "@" in an input: the text is captured and shown along with…
-
0
votes0
answers41
viewsPUT method does not work like the others in ANGULAR
I created a crud application where reading, reading by id, creation and deletion works well. The PUT method does not work, returns CORS error I have done several console.log to see if the object is…
-
0
votes0
answers20
viewscsv file being downloaded with null content - Angular 9
I have a code that makes a request my api in Node that returns me a csv file, but when I download the file, it comes only with null content generateReport() {…
-
0
votes0
answers154
viewsTake data from HTML forms - Typescript
I have an API-web, in c#, that stores in the database received via Post, and I’m trying to make an interface in Angular, which has an HTML form, which should receive the title and the body of the…
-
0
votes1
answer61
viewsHow to update the on-screen data in Angular?
Hello, Everybody! I am working with a web system in Angular, which has a search bar in the header. Seen this, when the search button is clicked calls the following function: onSearch(){…
-
0
votes1
answer58
viewsBehaviorsubject does not accept initial value equal to null
I have the following service, however, it is not accepting that I set it to null start pro Subject, keeps returning the error: Argument of type 'null' is not assignable to parameter of type…
-
0
votes0
answers24
viewsProxy error when accessing controller in ASP.NET core + angular
I’m sending a request for a project that has the structure: Frontend: Angular Backend: ASP.NET Core When sending this request, my controller returns the following message:…
-
0
votes1
answer62
viewsHiding another component element in Angular
Good evening person, I’m on a project where I wanted to add that button that hides and shows some information. But the tricky thing is that this button is in one component and the information to be…
-
0
votes0
answers60
viewsProperty 'Foods' is private and only accessible Within class 'Mainlifecyclecomponent'
How to access private attributes within html? I created private food, but I can’t access it in html because it’s private. has some way to access? main-Lifecycle.ts import { Client } from…
-
0
votes1
answer31
viewsReuse Angular Service Code
Productivity for system development often happens due to the wisdom of reusing codes and/or Components Analyzing my code I realized that my crud repeats many times changing only the url that calls…
-
0
votes0
answers28
viewsIs it possible to use the *ngFor filter of a parent component in a child component?
I wonder if it is possible to use the filter of *ngFor to filter the items of a table that is inside the parent component and the input search that is inside the child component and show the result…
-
0
votes1
answer104
viewsError capturing component information in Angular
My friends, I am starting to study angular, I am doing a CRUD of products I came across the following error when creating the component to edit the registered product. I tried a lot of different…
-
0
votes0
answers24
viewsHow to perform Join with another bank table, with different Rvers, using Sequelize?
I have a connection with two databases, with different servers, and would like to perform the Join between the tables of the two banks, using querybuilder. Would someone please help me? import…
-
0
votes1
answer46
viewsAngular - Route opens wrong component
When executing the route home/person/create loads the component person and not the create. I have little experience with routes in Angular if anyone has any suggestions. Thank you! The route…
-
0
votes0
answers14
viewsHow to store a table value in a AGM field in the database?
Hello I am developing a project with Angular, Firebase and Android. The project is a tracking system,by the mobile application is picked up the location, in Longitude and latitude, and these values…
-
0
votes0
answers15
views"Error enabling offline persistence" with angular and firebase during execution
I’m trying to convert a project to universal angular. When executing the command npm run dev:ssr it builds normally and shows the message Compiled successfully. ** Angular Universal Live Development…
-
0
votes0
answers37
viewsshow and hide angular component
I have implemented a component to change the font color in a text, and this component is opened through a button and hidden when clicked on the same button or elsewhere outside the color component.…
-
0
votes1
answer431
viewsType 'Observable<Arraybuffer>' is not Assignable to type 'Observable<Entity>'
I was doing an Angular 10 + Spring boot course and came across the following mistakes: Type 'Observable' is not Assignable to type 'Observable'. Type 'Arraybuffer' is Missing the following…
angular typescript visual-studio-code spring-tools-suiteasked 3 years, 8 months ago Rafael Carvalho 11 -
0
votes1
answer53
views*ngIf is rendering two blocks
I am doing a validation of inputs, where if the user selects the X-bank, the account field will have at least 5 characters and at most 11, if you choose the Y-bank, the field will have at least 5…
-
0
votes0
answers85
viewsExpressionchangedafterithasbeencheckederror - Ngxspinnerservice Error
The error happens only when I try to open a dialog, where inside, requests happen inside onInit, when starting the application error does not appear. ERROR Error: NG0100:…
-
0
votes2
answers62
viewsAngular - Array calling only first item
I am trying to calculate an Array to display the total value by adding an item to my cart. My array looks like this: I use the Status to inform in the view that the item has been added to the cart.…
-
0
votes2
answers40
viewsHow to list an Array in a checkbox, breaking by one of the Array items?
I have the Array below: this.ca = this.categorias = [ {cate: 'oquefazer' , tipo: 'ACESSIBILIDADE:', nome: 'Cadeirante' , icone: 'fa-wheelchair'}, {cate: 'oquefazer' , tipo: 'ACESSIBILIDADE:', nome:…
-
0
votes1
answer38
viewsSearch by id at angle
How do you take this value of the user variable and put it inside the Formgroup? No . ts I did so: ngOnInit(): void { this.id = this.activatedRoute.snapshot.params['id'];…
angularasked 3 years, 7 months ago Aluizio Júnior 3 -
0
votes0
answers43
viewsI can’t show the Material Design icon on screen
I tried to put the menu of Material Design, but I was not successful. Please someone has how to check if something is wrong with my code? angular js. "styles": [ "src/styles.scss",…
-
0
votes0
answers16
viewsCould someone help my Recovery interface is giving error - check
verificarRetornoHttp(**resp**){ if(resp.status >= 400){ this.exibirMsgAlert("Erro ao realizar a requisião!", "erro"); return true; }else{ if(resp.body.erro) { this.exibirMsgAlert(resp.body.msg,…
-
0
votes0
answers25
viewsAngular duplicating inputs with ngFor
In this app I want it to only return the value of the quantity in the input if the profile name is equal to the profile name of the data flock , but the angle is doing the following: It runs the…
-
0
votes0
answers23
viewsQuestion how to add object to an Array in Angular
I am learning Angular and am creating a method that will add an object in an Array to view in html using the Ngfor directive. The error is in the part that functio.push({}) export class AppComponent…
angularasked 3 years, 6 months ago Dayson Rodrigues 75 -
0
votes1
answer29
viewsHow to convert data to Angular?
I have this date in string format: Sun May 16 2021 09:54:25 GMT-0300 (Horário Padrão de Brasília) And I want to put it in the front-end form: <div class="ui-grid-col-6"> <vale-calendar…
angularasked 3 years, 6 months ago Rafael Breno 33 -
0
votes0
answers42
viewsError while adding create a component using Primeng
Speaks blz guys? I’m learning primeng but I can not run my project. I did the correct steps of the documentation and I see that I have error here but I could not solve. Steps I did was: I installed…
-
0
votes1
answer17
viewsAngular Error when changing status, communication between Components via service
can help me: Error: Expressionchangedafterhasbeencheckederror: Expression has changed after it was checked. Previous value for 'attr.Aria-describedby': 'msg-default'. Current value? 'id-0' I am…
angularasked 3 years, 5 months ago Thiago Piacentini 51 -
0
votes1
answer30
viewsAbbreviate the names of the days of the week
Versions Angular: "@angular/core": "11.2.1" Syncfusion: "@syncfusion/ej2-angular-schedule": "^19.1.65" I’m using the Syncfusion Schedule and in doing globalization I realized that when opening the…
-
0
votes0
answers14
viewsngFor directive working, Commonmodule declared correctly, but the editor flags the module declaration error
I am using the *ngFor directive to display the result of an array within a component, the structure is working correctly, however, in the editor (Visual Studio Code), it signals the following error:…
-
0
votes1
answer34
viewsNPM does not recognize "npm install -g @angular/cli"
Good night to you all. This error occurs especially with CLI dependencies (such as with Vue.js, too). Follows the error presented PS Z:\projetos\LABORATORIO DE EXPERIMENTOS\Vue\VueJS> npm i -g…
-
0
votes1
answer37
viewsAngular11/HTML - Problem with autofocus
Hello, everyone. I’m having problems with autofocus. I have a login form with user and password. autofocus is in the user input. After the first login, save user and password to not need to type…
-
0
votes0
answers9
viewsAngular + Nodejs Problem making change in product registration (update)
Good Morning, I’m trying to solve a problem but I’m not getting ...please I need help: When trying to change a product registration, in Angular I get the API status 202 and the record is not saved…
-
0
votes0
answers18
viewsReactive form Input with matInput
I implemented an input text field that searches the elements in a list, this working is correct, but when typing the words it does not allow spaces in compound names that are already found in the…
-
0
votes1
answer31
viewsVariable Sharing between Angular Components
How do I use variables from an Angular component in the following context? In a component I have a variable that is an array of a class created in that same component, this variable controls the…
-
0
votes0
answers10
viewsHow to grab the label of a multiselect clicked on Ngprime?
I’m working on a project that uses Ngprime and Angular 10. I need to get the label of the checkbox that was clicked, only I don’t find any property that returns the label, only the complete list. I…
-
0
votes1
answer43
viewsHow to use a form in the sister component?
I have a component called detail-paciente in which it contains a form with several properties, one of which is a Formarray. I want to use the same form as this component in a child component, as I…
-
0
votes1
answer22
viewsHow to apply a function to the button that will only proceed with checkbox set
I have a term-of-service display screen. My doubt and how can I apply a method in the button "query" which, only when the checkbox is set the user can proceed. <ion-header…
-
0
votes1
answer23
viewsERROR Nullinjectorerror: R3injectorerror(Dynamictestmodule)[Kdsdialogservice -> Matdialog -> Matdialog]: Nullinjectorerror: No Provider for Matdialog
I am doing unit testing in an application of mine. I am beginner regarding testing, so I need your help. In my application I do a service using Matdialog ( Kdsdialogservice). I have tried putting…
-
0
votes1
answer18
viewsHow to set the value of a dropdown (primeNg) taking only one property of the object
I created a dropdown field where I want to send only a number as a select value. But to list the options dropdown created an object name: string, id: number to render the name on the screen. I would…