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
answers155
viewsPO-UI - Page Dynamic Table is not calling Metadata url
question if it refers to PO-UI library, but I have no right to tag here in OS I have the following component: <po-page-dynamic-table p-service-api="http://localhost:5000/api/clientes">…
-
0
votes1
answer62
viewsHow to avoid that when enrolling in an observable it receives the last amount issued?
I have a behaviorSubject that emits values and an Observable I use to receive the values issued: observableSource = new BehaviorSubject(null); observable$: Observable<string> =…
-
0
votes2
answers384
viewsAngular - How to disable a field without disabling the value
Good evening guys, I have a very simple angular question. I have a form, it has a specific field that I set the value by a patch value but at the same time need to disable in that field. However…
-
0
votes1
answer44
viewsUsing Interface with observable
I created an Interface to save user session information to use with an observable, idea and set when the user logs in and the other pages, and a service for HTTP requests will do the get of this…
-
0
votes2
answers40
viewsError when exporting custom component
I’m working with Angular, and a pro template I bought. However I am trying to export a custom component, but I was not successful in trying to export this my component, I did it also to the examples…
-
0
votes1
answer53
viewsDelete key composed of a table with angular and Asp.net core
You guys all clear? next I’m having problems with composite key in my project and I wanted your help because I’m still not quite sure about it, I’m doing the front in Angular and the backend with…
-
0
votes0
answers42
viewsService class does not recognize Angular 10 Httpclientmodule class methods
That’s the structure of my little project; And be able to import the http module into my project as you can see below; But after importing the method into my service class it generates errors in the…
-
0
votes1
answer301
viewsI’m having problems in my angular angle , when I go from an npm start to that message
This likely Means that the library (@angular/material/snack-bar) which declares Matsnackbar has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version…
-
0
votes1
answer35
viewsHow to unlock the fields according to what the user types?
I’m making a form with 3 fields, where the first fields is unlocked and the others blocked. They unlock according to the first field, for example: User typed in the first field -> unlocks the…
-
0
votes1
answer85
viewsShould we use Pipes instead of ternary condition in the template to render something in Angular?
I’m evaluating the best approach to rendering something in my template from a condition, so it avoids rendering and calling unnecessary functions to improve application performance. I realized that…
angularasked 4 years, 3 months ago veroneseComS 2,752 -
0
votes1
answer30
viewsError trying to generate Webpack
It has a project that uses webpack along with nodejs and angular, but when trying to use the "webpack" command on the terminal to generate the webpack Bundles it displays the following error…
-
0
votes1
answer43
viewsAngular search array
I’m having a problem fetching data from an array buscarDados(cep: string, uf: string, cidade: string): CEP[] { this.storedNames = JSON.parse(localStorage.getItem("enderecos")); return…
-
0
votes2
answers167
viewsPass value to array - angular
I have this formGroup: this.formGroup = this.formBuilder.group({ id: [null], code: [null, Validators.required], description: [null], percent: [null, Validators.required], dueDate: [null,…
-
0
votes2
answers49
viewsAngular 9 - When I paste the absolute link of an internal link of my site it gives error
For example: Link to the Portfolio: http://www.impactodesigner.com.br/portfolio/ If I paste into the browser already with an internal link it gives error, for example:…
angularasked 4 years, 3 months ago Gilberto Bá 11 -
0
votes2
answers53
viewsConditional Checkbox
I need to perform a validation when selecting some options in the following checkbox: The rule is this:: If IMPEDITIVE is selected with "S", EXECUTED must be "N". However, both may be N but can…
-
0
votes0
answers44
viewsHow to create dynamic routes at Angular 9
I’m having trouble creating dynamic routes, in case my system has customers and each client has a code. Wanted in the url or route, when inform the client code on the route, it fetch the customer…
-
0
votes2
answers423
viewsHow to make a [GET] request with custom headers in Angular 10?
I need to make a call to my Angular 10 microservice, passing some information in the Request Header. However, doing so returns the following error: Error triggered in console while calling service…
-
0
votes1
answer26
viewsDelete record using NGRX and effects
I’m studying state management and while trying to delete a record by hitting my endpoint, the value of id is going "Undefined". Component this.store.dispatch(DELETE_COMANDA(comandaId)); Actions:…
-
0
votes1
answer136
viewsCommunication between directives
Next guys, I have a directive in Angular as the code below: import {Directive, HostBinding, HostListener} from '@angular/core'; @Directive({ selector: '[borders]' }) export class BordersDirective {…
-
0
votes1
answer237
viewsHow to save checkbox status within an angular dropdown?
I’m using a department object to display some checkboxes within a dropdown. When I click on the dropdown, it loads this object and shows the checkboxes. The problem is that I don’t know how to store…
-
0
votes1
answer107
viewsAPI Returns Json Object with ID - IONIC 5 and Angular
I’m working with an API that returns a JSON with a JSON object inside. Example: {"authorized":true,"status":200,"foundmatch":true,"requested":"baiier", "players": {…
-
0
votes1
answer313
viewsHow to change a css class in the parent component by clicking a button on the child component?
I am new to developing projects with Angular. I need, please, a great help. I would like a class css was changed in a <div></div> inserted into the parent component and when a button was…
-
0
votes1
answer374
viewsReal-time component update at Angular
Hey, guys, all right? I’m starting my studies with angular and I’m having an implementation problem. I have an API, developed by me, in which the returned data is updated every 20 seconds on the…
-
0
votes1
answer101
viewsI get 404 code at a PUT but GET works normally: {body: {...}, url: "api/modes/1", headers: Httpheaders, status: 404, statusText: "Not Found"}
I am a student and beginner in Angular and at the moment I will continue to use PTO in a project, but before that I am preparing CRUD methods so I can work on them, so I am going through request…
-
0
votes1
answer215
viewsBuild Docker with angular Node
I need a little help with Docker, I need to build to generate an image, but I’m having the following error: Step 9/10 : COPY --from=angular /app/dist/Docker-softplayer /usr/share/Nginx/html ERROR:…
angular docker angularjs-directives docker-compose docker-windowsasked 4 years ago Nasser Othman 11 -
0
votes0
answers22
viewsUnderstanding the use of forRoot() in Angular2+
Hello, I don’t know if I understood very well what is in the Angular documentation, but from what I understood, when declaring a module in the app.module as for example FooModule.forRoot(), this…
-
0
votes0
answers56
viewsng2-pdf-Viewer does not display automatic pdf
I have an Angular 8 application that I get a pdf file from the API. At the angle, I get the pdf file as blob and convert to Filereader to use the byte array. I am facing the following problem, the…
-
0
votes0
answers18
viewsI noticed in Chrome devtools that my application (Angular) is making many requests. What could be wrong?
//SERVICE import { Injectable } from '@angular/core'; import { Angularfirestore, Angularfirestorecollection } from '@angular/fire/firestore'; import { Product } from '.. /model/product'; //import *…
-
0
votes2
answers2175
viewsTypescript error: Object is possibly 'null'
I have the following component in Angular: import {Component, OnInit} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; @Component({ templateUrl: './course-info.component.html'…
-
0
votes2
answers104
viewsChange background color of a table Row using checkbox
I’m trying to change the color of a row when a checkbox is selected, but when selected only one, the table the entire color is changed, the check remains only in the selected one, but the color is…
-
0
votes1
answer203
viewsDisable Components with Angular
I have a list with checkbox (inside a table) and need to disable all screen components when a checkbox is marked. I’m trying to use the ngClass with disabled, as follows: <div…
-
0
votes1
answer72
viewsAngular how to use disabled in a matInput input?
I have my HTML: <form class="needs-validation" novalidate [formGroup]="form"> <div class="form-row"> <div class="col-md-4 mb-3"> <label for="nome">Nome</label>…
angularasked 3 years, 11 months ago Rebeca Nonato 1,163 -
0
votes1
answer19
viewsProblem of connecting an Observable
First of all, excuse my Portuguese, I don’t write it well and I’m using a translator, but I can read it well enough. I have a problem connecting an observable that I create in a service with a…
-
0
votes0
answers25
viewsng2-char: How to show the percentage inside the graph?
I’m using ng2-Chart to generate the graphics. The problem I wanted to put the percentage or even the values inside the graph, but I couldn’t do that. In [options] step a plugin I saw the people on…
-
0
votes0
answers21
viewsOperation of the service worker in a keyclock application
I am creating an application, where the login is done by the service "Keyclock" and the application is angular. When enabling the service worker and running local, it does exactly as expected,…
-
0
votes0
answers46
viewsAssign subscribe to global variable with angular
I have method that makes one subscribe and brings me an object array huge. getItems() { this.service.getItems() .subscribe(items => { this.listaItems = items;}, () => console.log('msg de…
-
0
votes1
answer29
viewsVertical limitation of the web page
Hello, my first question (I’m a little nervous O.o), I hope I can explain my doubt. My doubt... I have a project for college and I’m having difficulty of Front-End, I need to perform a Horizontal…
-
0
votes1
answer28
viewsError while listing data in Angularjs
Hello! I am listing data and at the same time is pointing me error, but I do not know how to correct. The data being listed comes like this: Follows my code <div id="inputGrupo"> <select…
-
0
votes1
answer98
viewsDynamic Angular Output. Is this possible?
First of all, excuse my Portuguese, I don’t write it well and I’m using a translator, but I can read it well enough. I have several parent components and created a common child component for all of…
-
0
votes1
answer151
viewsHow do I search for Angular 8 id?
Brought information from api by id, but I put it right into ngOnInit within the method the number of the id. I wanted to know how to search for these products in the input when pressing the button?…
-
0
votes1
answer92
viewsDropdown button inside a card does not work (Bootstrap/Angular)
Hey, guys! All right? I cannot make the dropdown work and open your options. This button is inside a card that is to be a kind of left sidebar. I got this button on bootstrap. All this code is…
-
0
votes0
answers31
viewsAngular Httpclient.get taking time
Good afternoon, guys, next, I’m developing a project of my course with some people, but there’s an excerpt where I’m suffering a little for the reason that the code sends the request to my back (In…
-
0
votes0
answers22
viewsUpdate of JS global variables
I have the following function: async function openModal() { // função chamada por um botão buscarPessoas(); $('#Mymodal').modal({ backdrop: "static", keyboard: false }) } async function…
-
0
votes0
answers30
viewsFilter an array with lodash.filter
I have the array: lista = [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }]; And I want to filter the objects from what the user type into two inputs: <input nz-input…
-
0
votes0
answers34
viewsFormarray Ionic
I am receiving the information from my database and showing on screen using *ngFor, this information is products, on that screen, the customer puts the quantity in the product. However I am having…
-
0
votes1
answer30
viewsSource URL in Angular REST request
Hello In the REST request of the Ionic application with Angular is automatically added the source URL: http://localhost:8100/127.0.0.1:5000/medicao? start date=2020-12-13&end date=2020-12-20…
-
0
votes0
answers20
viewsin a fb.array I have another array so I can’t generate the other field to insert a new product and its additions
Good afternoon, everyone, I need your help. This is a piece of Json I need to assemble. { "produtos": [ { "nomeProduto": "Bolo", "produto": 47, "valor_venda": 10, "quantidade": 1, "totalProduto":…
-
0
votes0
answers58
viewsAlign 2 Information in a column with Table Using *ngFor
So I’d like to line up my table, currently it’s coming like this: But the expected would be something like: in this case, each part of the object in a given row column (showing both the status and…
-
0
votes0
answers25
viewsUse Angular 8 with angular/core in webpack.Exports externals
I am with an Angular 8 project and would like to get the javascript files of a CDN. For example, I have rxjs and instead of it being part of the build, I would like it to be obtained in Runtime from…
-
0
votes0
answers49
viewsHow to use an ion-Infinite-scroll inside an ion-slide on Ionic 5
I am trying to make in my project a slide that loads the items coming from an API of 5 in 5, but when adding the ion-Infinite-scroll component inside the ion-slide it is not called when sliding…