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
-
3
votes1
answer83
viewsDiv leaving the right side of the page in animation
I have a div that is a mobile phone and when I go down the page performs the animation but before performing the animation this div ta getting off the page breaking all the layuout my div <div…
-
3
votes1
answer129
viewsHow to make a recursive sum on a JSON object in Angular 6?
Using Angular 6, how could fill the field total representing the total number of direct and indirect bosses of each employee? I have the following data: const employees = [ { id: 1, firstName: 'a',…
-
3
votes1
answer99
viewsWhat is the difference between ng new and ng generate application?
I know that the ng new nome-projeto creates a directory with the project inside, but I’m not able to understand the difference between it and the ng generation application. In the Angular…
-
3
votes1
answer460
viewsLogin page
I’m learning angular. I’m using angular 6 I am trying to make the login page of Admin LTE I imported these files in angular.json "styles": […
-
3
votes2
answers5245
viewsForm Builder with angular array
I need to create a form that dynamically increments three fields by clicking a button. I searched the angular site but there just shows how it does with a field. I tried something like: <div…
angularasked 6 years, 2 months ago veroneseComS 2,752 -
3
votes2
answers5045
viewsClose modal when you click the button
Hello, I have this following modal, whenever I click on the button "Refused sale" it opens, however I wanted to close this same modal every time he clicked on the button "Send", that in the case is…
-
3
votes1
answer150
viewsMatch a route with "localhost:4200/test-(dynamic parameter)" at Angular 7
Summary of the problem: It is one of those friendly URL’s that will be sent and within the parentheses will come next to the airport of the city, I need the route to be activated when it comes with…
-
3
votes1
answer3965
viewsCannot find control with unspecified name attribute Angular
I’m trying to make a simple component using Reactive Forms in the input, but this giving error that until now had not seen Input.components.ts import { Component, OnInit, Input } from…
-
3
votes1
answer1482
viewsTurn String into Localdatetime
I created this Edit Fields button, to change the data of these users I created, the name, name and document are working, without the date of birth is updated, but when I try to edit the Date of…
-
3
votes1
answer79
viewsIs it correct to make a user authentication by the backend return message?
Good afternoon, you guys! Earlier I took a question regarding user authentication in my application and after some good tips I was able to authenticate my user, the doubt now is whether the method…
-
3
votes6
answers674
viewsAngular 6: Selected does not work with [(ngModel)] and (ngSubmit)="onsubmit()
I receive the Customer class in my form import { NgSelectOption } from '@angular/forms'; export class Cliente { nome: string = ''; carros: any [] = [ { id: 1, modelo: 'Gol',selected:false }, { id:…
-
3
votes1
answer73
viewsWhat is the best way to login auth?
Authservice login(user: User){ return this.http.post<any>(`${this.API_URL}`, { email: user.username, password: user.password }); } isUserLoggedIn(){ return…
-
3
votes1
answer417
viewsAsync/Await does not work with callback
I have a function that converts an image to base 64 but I want only when the console.log('1') run; should appear is the place where I run a post but even inside the arrowFunction it makes the…
-
3
votes1
answer2537
viewsWhat it means: ERROR Error: Expressionchangedafterithasbeencheckeoverthrow
Areareservadacomponentcomponent.html:2 ERROR Error: Expressionchangedafterithasbeencheckederror: Expression has changed after it was checked. Previous value: 'Hidden: Undefined'. Current value:…
angularasked 5 years ago Amadeu Antunes 3,331 -
3
votes1
answer811
viewsAngular Integration with Pagseguro
I am trying to implement an integration of Angular 8 with the billet generating api of pay-off. Making the request by POSTMAN, I can generate without problems, by angular I am blocked by CORS.…
angularasked 5 years ago Matheus Barbosa 361 -
3
votes3
answers12331
viewshas been blocked by CORS policy: No 'Access-Control-Allow-Origin'
I am developing an integrated Java Backend (Rest Spring) with Angular Front 8. When trying to list the list of users(via JSON) I get this message: Access to Xmlhttprequest at…
-
3
votes1
answer194
viewsRefresh token requests delayed
How to make the token be created at the same time the method gets: The way I implemented it, it checks that the token was created, but the token used for the request is the expired token. Only after…
-
3
votes0
answers98
viewsNowadays.. How far does the front end go?
before marking as duplicate of the following question Difference between client-side and server-side. Let’s look at some facts. The previous question is from 2013 or 4 years ago, long before the…
-
3
votes0
answers475
viewsCORS policy Delphi Rest Full
I am creating a Delphi Rest Full server to be accessed with Angular front-end, I can apply the POST, PUT and GET but in the attempt to run a DELETE I get the CORS error implemented treatment as many…
-
3
votes1
answer212
viewsAngular 8 - reactive form Directive and disabled attribute
After I upgraded from Angular 7 to Angular 8 in an application the [disabled] stopped working in various parts of the template. And to load the application I needed to change to [attr.disabled]. I…
-
3
votes0
answers42
viewsHow to listen to coordinate changes on a canvas via a mobile device?
I created this component in Angular that has a canvas and when the user clicks and drags on that frame, the canvas is filled with coordinates positions. I tried to reproduce this same behavior in a…
-
3
votes1
answer140
viewsAngular Folder Upload (not just multiple files, but the entire directory)
I’m using ngx-admin with Nebular for a Dashboard project. My following code works well to send multiple files. However an error occurs when trying to send a folder (dragging the folder to the file…
-
3
votes1
answer53
viewsSubscribe button only works in the second click
I have a button for each row of a grid, which when clicked, calls an subscribe that fills the data of that code clicked inside a modal. This button until it works, but not on the first click, but on…
-
2
votes1
answer296
viewsAngular 2 with jQuery
Eai personal, I wanted to know if the use of jquery along with angular2 is recommended, or the angular already has native functions for DOM manipulation as well as jquery? my case I wanted for a…
-
2
votes0
answers359
viewsError Maximum call stack size exceeded
In an application made in Angular 2 I need to assemble a report in html, I consult the data by API and monster the data in html through data-bind, only this error occurs: EXCEPTION: Error: Uncaught…
-
2
votes0
answers99
viewsSet the ion-radio as required
I am mounting a dynamic form using ionic2, but multiple choice components do not accept the property required how would I do that on Ionic? The component I’m trying to put property required is the…
-
2
votes0
answers569
viewsAngular 2 mask directive does not put the mask on the screen start
Hi, I made a directive on Angular 2 to put masks on some fields, one of them the zip code. It works right, the only thing I could not do is that when loading the data in the fields of the screen the…
-
2
votes2
answers844
viewsHow can I filter, both by Category and by Price?
I have 2 filter buttons: Sort by Price - That Works. Sort by Category - Doesn’t Work. I would like to operate the filter both by price and by category. Both are modal and I’m doing it this way: O…
-
2
votes0
answers102
viewsWhat is the difference between Angularjs and Angular 2?
I’m studying javascript and I’m seeing some frameworks that are very famous, I haven’t chosen any yet, but I’ve read about some, so I was left with doubt: What is the difference between Angularjs…
-
2
votes1
answer37
viewsComponent is printed 2 times in browser
Good guys, I’m developing an app with angular2 final version using routes. I created some files and then came across a problem of routes. My Component Home is printed 2 times in the browser. In the…
-
2
votes1
answer236
viewsIntercept all HTTP requests from angular2
I’m looking for a way to intercept all HTTP requests from the angle and add a few headers. In versions prior to angular2 RC5 (before the NgModule) was that way, for example: class MyOptions extends…
-
2
votes2
answers411
viewsUse Angular 2 without Nodejs after build
I am developing an application in Angular 2 using Webpack. My doubts are, after I build for production: I can run this app without the Nodejs ? I can run the app Angular 2 no server, right in the…
-
2
votes2
answers219
viewsAngular2 Child Routes
const itemRoutes: Routes = [ { path: '', component: ItensComponent, children: [ { path: '', redirectTo: 'lista', pathMatch: 'full' }, { path: 'lista', component: ListaItensComponent }, { path:…
angularasked 7 years, 10 months ago Mauricio vs 21 -
2
votes1
answer593
viewsHow to use Angular 2 with Microservices?
Hello. I have just completed my Angular 2 course. And I would like to know if there is any course that teaches using this tool with Microservices. I know that there are several frameworks that offer…
-
2
votes2
answers2070
viewsHow do I emulate an Ionic 2 application on the tablet, and also as Gero a . ipa and . apk?
I want to emulate my Ionic 2 application on the tablet but I can’t, I’ve already uploaded an Ionic cloud but only works in the Ionic view app, I’ve also used Ionic emulete and Ionic run, but when I…
-
2
votes1
answer673
viewsDelete item from an Inioc 2 array
I’m having a hard time understanding how splice() works. I need to delete items from an array when I click on (x), e.g.: <ion-item *ngFor="let item of data"> <ion-grid> <ion-row>…
javascript html5 angular ionic2 arraylistasked 7 years, 6 months ago Henrique Mendes Silveira Rodri 367 -
2
votes0
answers483
viewsCreate Form with Components at Angular 2
I’m starting with Angular 2 and I have a question, I believe simple, in the creation of forms: For example in a system that contains the following entries: Customers Suppliers Carriers Each…
-
2
votes1
answer639
viewsGroup data with Ngfor and Groupby
Before in Angular 1 when I wanted to make a grouping of data I did so: ng-repeat="(key, value) in me | groupBy: 'role_id'" In my object me had a list of users with a field role_id different. Then I…
-
2
votes2
answers739
viewsHow to ensure that a ngOnInit-dependent function is executed after it?
I have a class that when booting retrieves data from a service and popular one of its attributes, which is a array. This class has a function that sorts this array, filter and return the result.…
-
2
votes1
answer4806
viewsLogin with angular 4
I am learning angular4, and would like to know a way to login with the same. I can already get the backend data, but how do I set up the session? (I came from php, there was only use). I saw…
-
2
votes0
answers316
viewsAngular 2 - Switch the comma value separator to a point
I want the value of my Form to return 2 decimal numbers with a comma separating instead of a dot. Ex: 20 -> 20,00 And if the value is greater than a thousand he has point separating. Ex: 1000…
-
2
votes2
answers1766
viewsVery Slow Loading (Angular 4)
I put an application in Angular 4.3 in production and realize that the first load is quite slow for the application size (2.93 Mb) The site does not connect to API Rest at the moment, it is only the…
angularasked 7 years, 1 month ago Duilio Benjoino 159 -
2
votes1
answer119
viewsRedeem user phone number
On Android, using Java, it is possible to redeem the device user’s phone number with the following code: TelephonyManager tMgr = (TelephonyManager)mAppContext.…
-
2
votes1
answer451
viewsView Firebase Child in Ionic
Hello! I have a project on Ionic that I need to display some promotions, however I need to "update" them after the app released. For this I’m using Firebase! I managed to display in the app what I…
-
2
votes0
answers51
viewsAngular 2 bug in the url after auto-Compile
Every time my Angular application auto compiles, the url is never restarted but my application goes back to the homepage the same way. So if I’m in the following URL:…
-
2
votes1
answer308
viewsWhat advantages does Angular 4 have over Angularjs 1.6?
I work with Angularjs 1.6 and I am studying angular4, I know that as all language and technology goes constantly through a process of evolution, but this change that the angular had is recommended…
angularasked 7 years ago Juliano da Silva Barbosa 942 -
2
votes1
answer353
viewsFirebaselistobservable transforms into Object Array
I am using Ng2-Smart-Table, according to the documentation it accepts an array of objects to mount the table: In HTML: <ng2-smart-table [settings]="settings"…
-
2
votes6
answers11997
viewsCurrent date Angular 2
I need to get the current system date. I use Angular 2. I tried the following validation, but without success. var now = new Date; if(dataInicial > now.getFullYear() + now.getMonth() +…
-
2
votes0
answers47
viewsPrimeng - Column Toggler - Selection of certain columns
Olás! I’m using the Primeng Datatable column selection feature. Among the 12 column options I have, I would like only 4 to be selected. However, all of them are already selected by default. How to…
-
2
votes3
answers434
viewsSynchronous query in Sqlite using Ionic
I have the following function below: public requisicaoXPTA() { this.database.executeSql("SELECT * FROM tbl_xpta", []).then((data) => { // o resultado retorna aqu na variável data }, (error) =>…