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
answer1183
viewsModal Angular bootstrap - The content of the modal is inside an ng modal window
I’m using modal bootstrap for angular, as per the documentation, this is the way to use the framework. I am following exactly as in the example. Here’s a bit of my code: <ng-template…
-
0
votes0
answers75
viewsUse Helium to discover unused css classes in Angular
I’m trying to use the Helium to discover unused classes in my css. I imported it into my index.html: <script type="text/javascript"…
-
0
votes1
answer444
viewsAdd and Remove class of an element with scroll - Angular
I’m trying to make the navbar have a "Fixed-top" class when moving the scroll and removing the class when it’s at the top of the page. I wrote the script below but it’s not working. import {…
-
0
votes2
answers492
viewsCss and js files do not load in production
Hello, When deploying my application to a server Tomcat 8.5 css and js files imported into angular json. are not loaded. locally works correctly Remarks: This server has a link to external access,…
-
0
votes0
answers126
viewsProblems with GET Angular 7 request
Good evening guys, I’m trying to create a requisition like get in my Angular application, but it’s popping that error. I couldn’t understand what you mean and none of the possible solutions I tested…
-
0
votes1
answer48
viewsStart radiobutton with checked using Reactiveforms + Formarray
Is there any way to start my radiobutton with checked? I’m using Reactiveforms with Formarray and I need the first element to be created in formArray to be already checked. What I tried to: HTML:…
-
0
votes1
answer93
viewsTreat return of the maps api getdetails() function in angular/Ionic
I look for places close by with nearbySearch(), which returns an array of objects, from this return use the place_id to fetch the details getDetails(), that returns an object "place". Inside a loop…
-
0
votes2
answers113
viewsProblems with Reactiveforms at Angular
Hello, I’m having a hard time finding a solution to my problem so I’m here, I’m trying to create a search field on my page, it’s not doing the research, but it’s not returning any errors in the…
-
0
votes0
answers41
viewsHow do I control a split form?
I have a system that has a lot of <input>necessary to assemble a requisition, they are divided into 4 parts (components), each part having one or more subparts (subcomponents) I don’t want to…
-
0
votes1
answer282
viewsngModel inside ngFor - Angular/Ionic
I try to create a test with several questions and each question has 4 answers, my logic is, the first ngFor is the number of questions and the second is your answers. My problem is that when I type…
-
0
votes1
answer500
viewsVariable value in the middle of an html LINK
The idea is to pass a phone number on the link to direct call on Whatsapp: <a href="https://api.whatsapp.com/send?phone=+55'NUMERO'&text=blablabla"> Buttons and the like are already made,…
-
0
votes1
answer1089
viewslist multiple ngFor arrays
I need to list all subcategories in a table and I’m not sure how to do this. { "message": [ { "category_id": 1, "shop_id": 1, "category_name": "Bebidas", "status_cat_css": 0, "status_cat_active": 1,…
-
0
votes1
answer86
viewsApache does not find URL
I developed my page using angular Only that by giving the ng build --prod --bh=/projeto/ When I want to access my system by sending a parameter via url The same only works if you are using the…
-
0
votes0
answers113
viewsNg2-Charts Angular 2 - Update is performed on the chart, however, with empty data
I’m trying to update a graph using ng2-chartjs in Angular 2 (specifically Angular 7.2.0). When updating, the graph is resized, but the line of the graph is not drawn. To be clear, here’s what…
-
0
votes0
answers140
viewsHow to use HTML elements inside SVG in Angular?
I was using SVG in Angular when I needed to put HTML elements inside it. So I first tested it in w3schools. Image with the code and expected result below. Then I replicated in Angular("xhtml:"…
-
0
votes1
answer345
viewsSet up dynamic menu
I have the following array I would like to introduce a menu with a dynamic submenu, more or less like this one I tried to do it that way <ul class="sidebar-menu" data-widget="tree"…
-
0
votes0
answers1348
viewsAngular: CORS error when making http GET request
I need to receive a list of questions from my API and store in an Array in my angular component, I’ve done it several times in other projects and it always worked out that way, only this time there…
-
0
votes0
answers68
viewsUncaught (in Promise) Domexception when trying to play sound at the angle
I’m trying to play a sound at the angle, but I’m getting two errors. The first: Uncaught (in Promise) Domexception push..…
-
0
votes1
answer85
viewsHow to show a loading only on the element on which it was clicked
I have the following repeat structure: <div *ngFor="let notificacao of notificacoes; let i = index"> {{notificacao.marketplace}} {{notificacao.data_entrada | date:'dd/MM/yyyy'}}…
-
0
votes2
answers250
viewsHow to develop a specific layout for web and another for desktop?
Good morning, I’m trying to develop a layout for a flight search site, hotels, car rentals. The layout structure will be similar to sites like https://www.booking.com and https://www.kayak.com.br/.…
-
0
votes1
answer77
viewsTake bank dice and play in a select
Here I take all the employees of the company (this is correct, I already do on another page of the application and pull the data straight by . getFunctionaries) setConsultores(){…
angularasked 5 years, 8 months ago Vitor Ezequiel 17 -
0
votes2
answers1534
viewsConvert a JSON to OBJECT with Angular
I have a problem, I need to transform a JSON object that I receive from my backend to an object. I’m getting this JSON {"content": [{"id": 1, "nomebd": "teste", "email": "[email protected]"}, {"id": 2,…
-
0
votes0
answers189
viewsangular material 2 - autocomplete does not work
I’m having a problem, the Angular Material auto complete does not work in my code. Loading the page does not appear nor the options. html <div class="form-group col-md-6 form-md-line-input"…
-
0
votes1
answer1326
viewsNullinjectorerror: No Provider for Formcontrol! Error in simple form with Reactiveforms
I’m having an error trying to render a simple contact form, but I don’t have a vision of why. Follow the error: core.js:14597 ERROR Error: Uncaught (in promise): Error:…
-
0
votes1
answer919
viewsHow to make a DIV occupy the right space?
Good evening, I’m mounting the layout of a learning project of mine, I need to make the div occupy the space equal to blue image below My code is this:: My HTML and CSS are below: @import…
-
0
votes0
answers74
viewsHow to hide and show a div dynamically?
I need to dynamically show and hide a div. I even got something very simple using *ngIf, but what I need is that: When you click "the grid button", it opens the div only with the information…
-
0
votes1
answer1608
viewsPass more than one parameter on the Angular route
I have an application that uses angular V6, I have a route system where I can pass a parameter, in order to access another component, an id for example, however, I need to pass two parameters in…
-
0
votes1
answer43
viewsSearch pipe filter does not update changes to my template
I own the following search pipe filter: import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'search' }) export class SearchPipe implements PipeTransform { transform(items: any[],…
-
0
votes1
answer874
viewsAngular 7: How to update the html variable automatically when its value is changed in the . ts file?
I have a variable that gets value when the page renders, and it looks right in the template. However if I change its value with the page already loaded the value in . ts is updating (checked with…
-
0
votes1
answer26
viewsRow Striped does not work properly on my *ngFor
I’m trying to apply an effect of row stripped on the lines of a *ngFor but apparently it is being applied in all my Rows. I tried something like: HTML <div class="row ml-4" *ngIf="visivel">…
-
0
votes0
answers231
viewsChange folder components (Angular.io 7+)
Nowadays I have the following structure in my Angular7 project .src ..app ...dash-component ...login-component ...outro-component Is there a way to automatically change the components directory…
-
0
votes0
answers30
viewsClient side filtering of a Datasource
I am developing a query of a mass of data from my server, with the purpose of feeding a Datatable (in this case, the Angular Material). I am using the CDK library’s Collectionviewer and Datasource.…
-
0
votes1
answer23
viewsModel copular only with model data at angular
I am currently making a request get in the backend but is returning data that I will not use, I would like to copulate my model only with the data that was created. My model: export class Cliente {…
-
0
votes0
answers158
viewsFullcalendar Primeng Component
Good morning! I’m trying to insert the Fullcalendar component of Primeng into a project I’m doing. I followed the documentation, according to the Primeng website, but the calendar is not correct…
angularasked 5 years, 7 months ago GUSTAVO HENRIQUE LOPES SPACHUK 93 -
0
votes1
answer315
viewsAccess permissions on Ubuntu in Angular project
I’m having trouble accessing the files generated by ng new. The problem already starts that I can’t execute the command without the sudo in front. After all Angular folders are generated, the folder…
-
0
votes1
answer199
viewsDeleting Local Ionic Files 4
I basically made an application where the user records an audio, and then is presented to him with 2 options, Play and Remove. However my remove function is not working and Logcat neither debug…
-
0
votes1
answer200
viewsAuthguard doesn’t work, what to do?
If my user is logged in, he can access any route of my application and if he tries to access the route ' ' (empty) will be redirected to Dashboard, if it is unattended will only be redirected to ' '…
-
0
votes1
answer11633
viewsIncrease input size
Does anyone know how I increase the size of the input below ? <td> <div class="input-group"> <span class="input-group-addon">R$</span> <input type="number"…
-
0
votes0
answers143
viewsDynamic table using Reactive Forms
Using Reactiveform I set up a table so the user can add the raw materials of a particular product. The user selects in a mat-select and add a new row to the table (mat-table). The table columns are:…
-
0
votes1
answer1877
viewsChange input value after selecting an option at Angular 7
Inside my form, there is a select, where I choose an option, in this case I choose a user. <div class="form-row"> <div class="form-group col-md-5"> <label for="usuario">ID…
-
0
votes0
answers25
viewsFunction that receives from another function an array coming from the backend via http request
I have a function that I must pass to another function an id, which must perform a query in the backend and return me an array, I need to return to the initial function this listing, but when I give…
-
0
votes1
answer743
viewsAngular NG-FOR and NG-IF
I am trying to create a sidebar with dynamic links, but there is an error. Component. import { Component, OnInit } from '@angular/core'; @Component({ selector: 'pl-access-full', templateUrl:…
angular typescript bootstrap-4 angularjs-directivesasked 5 years, 7 months ago Leonardo Vinicius 335 -
0
votes1
answer26
viewsAudio CRS as a variable
Good morning, I’m having a problem adding the src of an audio passing through a modal. The page works as follows: 1) The user clicks on a button that opens a modal with a list of audios. 2) Inside…
-
0
votes1
answer30
viewsHelp with Z-index in 3 elements
I have a related problem that div will appear on top of each other. When I hover over some icon, I want the icon to turn blue and a message (stuck to the icon) will appear showing what that image…
-
0
votes1
answer28
viewsFor() you’re not going through every time you should
I have the following function: geraVariacoes(){ let produto = new Array() console.log(this.listaValorAtributosColunaUm.length) for (let i = 0; i < this.listaValorAtributosColunaUm.length; i++) {…
-
0
votes1
answer74
viewsMethod does not start at first time (Constructor or Ionviewdidenter)
I have a function that should be loaded and generate a list when the page is loaded, but it does not happen as it should. When you click on the tab referring to the screen, the function is not…
-
0
votes0
answers32
viewsCORB does not allow display JSON response
Provided an API that returns the following JSON: { "ResponseStatus": { "ResponseCode": 0, "ResponseMessage": "Success." }, "Events": [ { "CodEspec": 65957, "NomeEspec": "O PIOR ESPETÁCULO DO MUNDO",…
-
0
votes1
answer491
viewsFetch information from package.json
I tried to do this using require, but it didn’t work and there was this error : ERROR in src/app/footer/footer.component.ts(8,21): error TS2580: Cannot find name 'require'. Do you need to install…
-
0
votes0
answers52
viewserror generating angular build /material
When I turn the serve appears this error and does not load my components is displaying the following error that I can not solve: -Console- main.ts:13 Error: No base href set. Please provide a value…
-
0
votes0
answers61
viewsHow to add a javascript object in a dynamically received select option?
Which is the best way to add information in the value of being that I receive an Object dynamically. The current code is as follows (Note the _options[i] | json): <ion-item…