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
answer166
viewsPass ID to modal via ng-repeat Angularjs
How to take the line ID (Prod.productId) on ng-repeat and switch to modal to update the record. It must be something with ng-click on the button but I’m not finding any example. Someone could give a…
-
0
votes1
answer26
viewsSend Text Input to a Formdata (angular)
I have an image upload form, but I also want to pass a text field next to the image, the api is working perfectly and when I send by Insomnia it creates everything right in the bank, but when making…
-
0
votes1
answer270
viewsAngular 12, i18n scss fault
I’m trying to use a template I bought with internationalization, but I’m having problems when running the command ng server --conficuration=pt simply get errors in scss and Less files: ng serve…
-
0
votes1
answer33
viewsButton that when clicked displays an image, if clicked again displays another image
All right? I’m creating a button that when clicked it displays an image, and if clicked again it goes back to the old image, at the angle, currently I’m only able to catch the first action, I can’t…
-
0
votes0
answers22
viewsShow sidebar on a particular corner with angle
I want to show a Component that contains sidebar on a particular daughter route of 'patients', which gets id 'patient/Detail/:id', if I put the same way that is in the routing module does not work.…
-
0
votes1
answer41
viewsClose sidenav when width is less than 700
I have a sidenav of the angular design material that I need that when the width is less than 700, open the screen with the Nav closed, and when it is greater than 700 the screen can open with the…
-
0
votes1
answer614
viewsMake Angular4 wait for callback to API without timeout
People see if someone can help me. I need to make a call on the API, but it’s a lot of data, and I want Angular to wait for that termination, At that moment I put a file but it does not wait and as…
-
0
votes0
answers19
viewsHow to manipulate an Event at the angle
I have this post code: postId(isSuccess:boolean = false){ let obj: any = {}; obj.card_reward = this.idCard; return this.http.post(`${this.PATH_REWARD}`, obj).subscribe( success => {if(success){…
angularasked 3 years, 4 months ago Lucas Lima 1 -
0
votes0
answers38
viewsReturn data from another
I have the following problem, create the user and add the same in a course. Only I can’t return the course name on the user page. The course is added via select input, sending only the course ID.…
-
0
votes0
answers25
viewsAngular I cannot create a component with ng g c
Ola I’m trying to use the command to create component called sidebar in the angular o ng g c sidebar but when I press enter the terminal looks like in the photo.…
-
0
votes0
answers31
viewsFilter an array and access the Response.body of a multidimensional array
I’m trying to move forward on an angle project but I’ve been stranded for two weeks now. How I can access a multidimensional array with the same attribute names? Initially my json-server pulls 3…
-
0
votes0
answers16
viewsReact, Vue or angular
need one of the Vue or angular React framework or have how to do everything without it another detail, I can use the nodejs libraries without the above framework another detail, out of these 3 have…
-
0
votes1
answer85
viewsCannot read Property 'token' of Undefined when receiving angular localstorage object
My login function keeps on localstorage a token returned from the api: localStorage.setItem('token', res.data.token); Right after logging in, I need to pass this token to another function, but I…
-
0
votes0
answers59
viewsAdd more than one append to the angular http header
I’m making a Interceptor which should add to my header a token and an Authorization whenever the value of authToken is different from null. My problem is how to add a append in my header. I tried…
-
0
votes1
answer1826
viewsSharing module globally at Angular
I created a project used the Angular-Cli tool and together installed npm install --save @angular/material @angular/cdk npm install --save @angular/animations And as in the documentation itself…
angularasked 6 years, 4 months ago Sóstenes G. de Souza 180 -
0
votes0
answers297
viewsAngular, list is not updated after an deletion or insertion
I’m developing an application with angular and a api rest in PHP. I am performing a very simple CRUD, just to learn. My problem is when I will perform an Insert/delete and soon after I will recover…
angularasked 6 years, 4 months ago Bruno Aparecido da Silva 363 -
0
votes1
answer52
viewsMy jquery function stops working when I change route
I have a jquery function responsible for cutting a photo when a photo upload takes place: document.addEventListener('DOMContentLoaded', function() { function readImage() { if (this.files &&…
-
0
votes1
answer286
viewsTransform html image into angular blob
I have the following image: <img id="preview" class="cropped rounded-circle align-center animated fadeIn" width="220px" height="220px"> I need to pass it to a function that will convert to…
-
0
votes1
answer450
viewsCORB/CORS error when requesting google api
I have an Ionic-angular project with server developed in nodejs. I’m trying to do a user authentication by sending a request to the google api through the framework Passport using the…
-
0
votes1
answer62
viewsCan’t import the Observable package from the timer feature?
Watch this tutorial carefully: Importing RXJS Observable functions in Angular 5 I’m having difficulty performing the Observable Resource Import timer, I’ve tried to write the path in several ways…
-
0
votes1
answer277
viewsHide information from an Ionic/angular Collapse
I have a Collapse that works well, however I need to hide/show the trigger according to the index of that product. What I currently have: Html: <p data-toggle="collapse"…
-
0
votes1
answer1206
viewsHow to iterate array within an angular ngFor/Ionic
I have the following model: export interface Perguntas{ historico:[{id_historico: number, resposta_historico: string}] } In my file ts I perform an http request for a service that returns these…
-
0
votes1
answer108
viewsHow to configure routes in Angular
I am having difficulty configuring daughter routes in my project. I even set up some routes in my Angular project as you can see below, these routes are working perfectly; const ROUTES: Routes = [ {…
-
0
votes1
answer225
viewsAdd value to an input as per selection of an angular/Ionic combobox
I have an input text and need that when I choose an option in a combobox receive this value, but without deleting what is already written. What I tried to: <ion-textarea name="resposta" #resposta…
-
0
votes2
answers289
viewsPromise/Observable Chaining in IONIC/Angular
Personal I am new in IONIC/Angular and I do not understand yet very well Promise/Observable and would like a help ! I have the following situation: User clicks on a button that will fetch…
-
0
votes1
answer40
viewsRedirect user without token
Talk guys, good morning, so I have a problem and I’m not sure how to solve, (maybe it’s in the way I implemented it), well: i am saving a user and his token every time I log in to my platform, in…
-
0
votes1
answer169
viewsI can’t see more than one p-dropdown primeng on the same page
Have a page that has 4 p-dropdowns primeng but they don’t work, only one opens. Separately all work, but when only 1 on the page. <div class="container"> <form #f="ngForm"…
-
0
votes2
answers278
viewsHttp post request on Ionic does not send data as x-www-form-urlencoded
I need to make an http request to log in to my Ionic application, but my function needs to send the data as x-www-form-urlencoded, tried several different ways but still could not. public…
-
0
votes0
answers151
viewsHow to use ngIf to hide Links?
I’ll tell you directly what I need, then I’ll go into my problem further. I need to hide this link from edit, how can I do this with ngIF? <div class="col-lg-4"> <h1>{{ title…
-
0
votes1
answer822
viewsProblem creating project with Angular CLI
A good personal day, I’m starting my studies in Angular 2, using Docker for container management. Right at the beginning I’m already having problems, the creation of the project has been presenting…
-
0
votes0
answers27
viewsHow to implement the Marker Cluster plugin using Yagajs/leaflet
I want to implement the plugin Marker Cluster in my project using the yagajs/Leaflet. In the Marker Cluster documentation, they say I simply need to use the following code: var markers = new…
-
0
votes1
answer92
viewsAngular - Subgroup according to group id
I need to generate the subgroup according to the one selected in the group. I managed to go to present the id that was selected in html, I could not pass this value to getid. I’m using Angular 6 +…
angularasked 6 years, 3 months ago Cleriston Lincoln 49 -
0
votes2
answers39
viewsInsert a value into a variable in the form
I have a group and subgroup record. My idGroup is receiving a value and I have to insert it in the form to go in the post. @Input() idGrupo: any; configurarFormulario() { this.formulario =…
-
0
votes1
answer42
viewsPerform tests based on component Lifecycle
I need to run the tests following the Lifecycle Angular. I couldn’t identify any tool or way to do this. Basically it would be calling tests based on Lifecycle. Follow simple example:…
-
0
votes1
answer71
viewsProblems implementing ng2-img-max lib!
I installed ng2-img-max in order to resize images. I want each image sent to be resized to a predefined width and length. I see that most people use ng2-img-max when developing with angular 2/4. I…
-
0
votes2
answers1197
viewsAngular 404 (Not Found)
I finished my app and ran the command ng build --prod to generate the production version, then http-server inside the directory created by the previous command and the server worked normally, but…
angularasked 6 years, 3 months ago Lone Tonberry 525 -
0
votes1
answer2908
viewsIntegrate LTE Admin Template at Angular 6
I’m trying to integrate the administration into my project, but I couldn’t It’s like he can’t find the files I already gave the npm i admin-lte --save-dev I’ve already added the files in…
-
0
votes1
answer467
viewsIteration of arrays and objects
I have the following data coming from the api: { "unidades": [{ "row": { "0": { "titulo": "Unidade S\u00e3o Paulo", "url": "unidade-sao-paulo", "descricao": "Lorem ipsum dolor, sit amet consectetur…
-
0
votes1
answer147
viewsDynamic mounted Angular 5 track
I have a dynamic menu mount at the angle. The setup is done as follows: <ul class="pcoded-item pcoded-left-item" item-border="none" item-border-style="solid" subitem-border="solid" *ngFor="let…
-
0
votes1
answer44
viewsAngular list implementation with problem
I don’t understand what’s wrong with my code, the code is correct, even so I can’t list the data from my Mongodb database. This is my HTML <div class="col-lg-12"> <h3>{{ title…
-
0
votes0
answers616
viewsHow to show image at 2+ angle?
This code is working perfectly on another; <div class="col-sm-12 col-xs-12" *ngIf="is_edit && restaurant.image"> <div class="image_for_edit"> <img src="{{url +…
-
0
votes0
answers54
viewsDifficult to implement paging at Angular 2+
You can see that back-end paging is working. My goal is to achieve returns the first three records of the first tab in Angular as shown in Postman, if I manage to complete this first step of…
-
0
votes0
answers242
viewsError: Cors when integrating nodejs and Angular 6
I have a problem that I need to treat, but I’m not getting any solution so far. I have an application in Nodejs that I developed in #Expressjs and I face some problems related to CORS Browser. In my…
-
0
votes2
answers88
viewsngFor does not give the expected result
My ngFor not showing all the data that arrives, but in the console shows all the results. I pull some data from the API and it has a sales and meta data, they come in an array and I use the foreach…
-
0
votes1
answer449
viewsHttp request with angular 6
I’m trying to consume a REST service that has a basic authentication with angular 6 but I’m not succeeding follow the code I’m using unsuccessfully: public iniciarProcesso(dadosProcesso: string):…
-
0
votes0
answers33
viewsAngular - I can’t make build generated files (npm) work on the localhost
I ran the build command (dev option) and copied the dist folder inside the XAMPP htdocs folder. When calling the project in the browser, the app-root is not recognized and shows nothing on the index…
angularasked 6 years, 3 months ago Luiz Bordoni 1 -
0
votes1
answer660
viewsAngular - Take data from a json Object and put into a table together with another Object
Hi, I was wondering if someone could help me, today I have a table that receives data from a Komponent(Medias), I have another Component that is playlists, on playlists I associate the medias to a…
-
0
votes0
answers250
viewsERROR in Metadata version Mismatch for module in Angular
I’m making that mistake; ERROR in Metadata version Mismatch for module C:/Rei das cochinhas/API/restaurantui/node_modules/primeng/Components/inputtext/inputtext.d.ts, found version 4, expected 3,…
-
0
votes1
answer230
viewsSubscribe problem when return is a single Object
I am developing an application at angular 6 and am having a problem when I do Subscribe in the method that returns a single object in the HTTP request. For example, making this request by my…
-
0
votes1
answer134
viewsRepeated data in html (ANGULAR)
I have a *ngFor that fills my html, and this data is fetched from an API, so I use Schedule to reload the data every time it gives seconds = 15. Only that the data is being placed below the old la…