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
-
23
votes3
answers4443
viewsWhat are the main differences between Angular, React and Vue.js?
On a project SPA which will soon be used also in a mobile app, I need to know the main differences to decide which one framework should I specialize.
-
14
votes4
answers2450
viewsWhat is the :: (two-point double) in Angularjs?
I saw that in some OS question in English an Angularjs code that was using double-points before the variable. Example: {{ ::nome_variavel }} The usual is: {{ nome_variavel }} What is the difference…
-
14
votes2
answers355
viewsWhat are the main differences and advantages of using Shadow DOM and Virtual DOM?
Analyzing carefully for a better performance of an application, what are the main benefits in using one or the other and their differences? Angular for example works with the Shadow DOM approach,…
-
13
votes3
answers1372
viewsWhat is "Object-oriented" and what other methods?
I work a lot in AngularJS (Javascript) and with version 2.0 knocking on the door, which will have as main change the use of ECMAS6 I read a lot about Object-Oriented Programming. If you can keep the…
-
10
votes2
answers1644
viewsWhy use the Angularjs?
I have done a lot of research, but I can’t understand why I use Angularjs, using pages .php then bank returns, CRUD and etc. I deal directly on the pages .php, lists of bank records, insertion and…
-
10
votes2
answers525
views -
10
votes3
answers5420
viewsConfigure ng-bootstrap Datepicker for EN
I’m wearing a Datepicker from Ng-Bootstrap with Angular 2 and I want to set the date format (YYYY/MM/DD) to the format (DD/MM/YYYY) I also need to change the calendar days and months to Portuguese.…
-
10
votes2
answers219
viewsWhy do we use a "get" before declaring a function in Angular?
Why do we use a get before declaring a function in Angular or Javascript? That’s an Angular practice? get funcaoExemplo() { return this.exemplo.length === (this.exemplo2 + 1); }…
-
9
votes3
answers1950
viewsError when compiling Angular 5 project "is Missing from the Typescript Compilation."
when I try to run the angular server to test the project it fails to build with the following error: ERROR in ./src/app/shared/objeto/Venda.ts Module build failed: Error:…
-
9
votes4
answers7984
viewsHow to solve 3-hour accretion problem in Date attribute in Angular?
I have the following excerpt: let data = new Date(); console.log(data); // saída: Fri Oct 18 2019 08:23:27 GMT-0300 (Horário Padrão de Brasília) When making the request with the HttpClient Angular…
-
8
votes2
answers2209
viewsHow to Extend/Inherit Angular2 Component?
Doubt I would like to create extensions for some components already implemented in Angular 2, without having to rewrite them almost completely, because the base component could undergo changes and I…
-
8
votes1
answer154
viewsDoubt with ng-repeat
I have the following code: <div id="box-1" class="box"> <div ng-repeat="task in contato " style="margin-top: 5px"> <div class="md-card md-card-hover"> <div…
-
8
votes1
answer64
viewsWhat is the advantage of implementing the Angular lifecycle event interfaces?
Angular has an interface for each event of its life cycle, for example, OnInit for the method ngOnInit Since it is not necessary to implement such interfaces in order to benefit from the events,…
angularasked 4 years, 11 months ago Costamilam 9,556 -
7
votes1
answer6590
viewsFunction "change" with <ion-select><ion-option>
all right? I’m struggling, I hope you can help me... I’m studying Ionic 2 a little while and thought I’d make a simple application. In Javascript I managed to do it quietly, but with Ionic does not…
-
7
votes2
answers17539
viewsCan’t bind to 'ngModel' Since it isn’t a known Property of 'input'
I’m with [(ngModel)]="cliente.nome" this code keeps generating the error of: Can't bind to 'ngModel' since it isn't a known property of 'input'. ("="col-md-4 control-label" for="idNome">Nome:…
-
7
votes2
answers97
viewsHow to see the implementation of the Typescript code?
In several programming languages that I have worked or currently work with, I can see the implementation of the developed codes. In Dart or Java for example, I can go to the source code and analyze…
-
7
votes3
answers15990
viewsMascara CPF/CNPJ ANGULAR 8 NG-MASK
I have a Component where I need the input to have the mask for Cpf or cnpj according to the data entry. I am using ng-Mask, but my validation for the mask is only working for the first validation.…
-
6
votes1
answer775
viewsMandatory field rule should be on the backend or frontend?
I’m building an application where the backend is an API and the frontend is Angular2. In a user’s registration I do a validation in the API and if a required field is not filled in the API returns…
-
6
votes2
answers1862
viewsGroupby in Javascript
I’m getting the following result from a query: [ { "disciplina":"Portugues", "periodo":"1º Bimestre", "tipo":"1ª avaliacao", "valor":9.5 }, { "disciplina":"Matematica", "periodo":"1º Bimestre",…
-
6
votes1
answer1124
viewsDoes Angular 2 replace jQuery and AJAX?
With the use of Angular 2, it is still necessary to use jQuery and AJAX or Angular to replace 100% of these 2 technologies?
-
6
votes3
answers31875
viewsHow to know the version of Angular installed by Angular CLI?
I wonder how I can find out the version of Angular I’m using?
-
6
votes0
answers335
viewsAngularjs x Angular 2 x Angular 4
I have observed a slight controversy with these terms in the title of the question. Many people have referred to Angular 2 onwards as "Angularjs" which in my view is wrong, the correct one would be…
-
6
votes1
answer1536
viewsDirective differences in Angular
I would like to know the difference between the statements of directives. For example: ng-for="" *ngFor="" (o que é esse asterisco?) ngFor="" [ngStyle] I’ve seen and used them, but I haven’t found…
angularasked 6 years, 10 months ago Marco Garcia 332 -
6
votes2
answers2605
viewsHow to insert an HTML file with [innerHtml] and maintain Angular attributes
In my Componente i receive an HTML in the form of String and use [innerHtml] to insert this HTML in the Component View. Component: test(){ alert('Teste :D'); } html_string = '<input type="button"…
-
6
votes1
answer23929
viewsHow to get the ngFor index value
Could help me in a doubt, I have a form with an array where there is the FormControl "id". Is there any way to receive the value of index to fill in this field? <tr *ngFor="let item of…
angularasked 6 years, 11 months ago Felipe Hideo 82 -
6
votes2
answers782
viewsHow to create a Restful API with asynchronous processing and response using C# + Angular(v5+)
Hello, I am working with C# and I have the following problem: Imagine I have a route to my API api/estoque/inventario where this route should make the calculation of the inventory of the entire…
-
6
votes1
answer71
viewsRecursive Problems - Too Much Memory - Angular 9 - Settimeout()
Guys, I’m building an API and I need to make requests every three seconds on the server. Follows the code: countAcess() { if (this.menuExa && this.appService.requestValid()) {…
-
5
votes1
answer562
viewsDo I really need to have the src and ng-src attributes in the IMG tag? What is the function of each?
I saw here that we have the creation of tag <img> with the attributes src and ng-src. It really needs to be? Even more that here the two attributes have the same value.…
-
5
votes2
answers1846
viewsHow to create a static method in a public class?
I would like to create a static method in a public class with a ToastController so that I can access this method in several classes. I tried to do this way below but it didn’t work: export class…
-
5
votes3
answers13703
viewsHow do I publish an Angular CLI (Angular 4) project to my server?
I’m learning Angular CLI and managed to make an application run on localhost ng serve. However, I wanted to put this application on my hosted website on Hostinger, just for testing and etc. So, I…
-
5
votes1
answer497
viewsWhere and how to save the API authentication token?
Hello, I’m with an angular application, which will consume a API. For that to happen, I must send one POST to another API, which serves only to generate a token that I will pass on all other…
-
5
votes1
answer326
viewsBring id on route
I’m doing a user management. At the moment, I’m creating the put to edit. But, I don’t know how to bring the id on the route. There is a list of users and also an insert. When the client clicks on…
-
5
votes2
answers16831
viewsNullinjector error: No Provider for
I’m getting this error message: ERROR Error: StaticInjectorError[CervejaService]: StaticInjectorError[CervejaService]: NullInjectorError: No provider for CervejaService! at _NullInjector.get…
-
5
votes1
answer466
viewsWhy, at Angular, do we use interrogation?
Because in Angular we use interrogation, for example: *ngIf="listaxpto?.clientes.length"
-
5
votes1
answer66
viewsHow to return a Promise from an Angularfireobject using @angular/fire in Angular(V6+)
Hello, I’m working on a project in Angular where I need to return a Promisein a particular service. My code is like this: import { Injectable } from '@angular/core'; import { AngularFireDatabase }…
-
5
votes2
answers504
viewsPop up an icon in the middle of my image by hovering the mouse
I am trying to bring up a zoom icon on top of an image while passing the mouse over it (The screen has several images, the icon should appear only in the image that the user passed the mouse) I…
-
5
votes1
answer152
viewsCreate a new template for each N *ngFor elements
Hello, I have an array items:any[] and I want to iterate in the view with the *ngfor, however, I am using a template <carousel> where for every item of that slide I call <carousel-item>,…
-
5
votes2
answers76
viewsInsert a background inside a triangle in the corner of a div
I’m developing an angle portfolio, but I have a question about SCSS. I was interested in creating something that I don’t usually see much in portfolios, insert the portfolio background only in the…
-
4
votes1
answer599
viewsLog in to Angular2
I’m starting to learn angular2 and I have a few questions about how to log in to an application. For example I in php make a query with the variables I receive by post I check if they exist, if they…
-
4
votes1
answer1058
viewsData gets wrong when converting to Date in Javascript
Hello, I have an API in . net that returns the data, the date comes in format: 2016-06-17T00:00:00 and I try to convert it to date in Javascript, so I do the following: var data = new…
-
4
votes1
answer104
views -
4
votes4
answers1532
viewsAngular 2 Binding in Component
I have the following scenario. I have a list in one webservice, but when I expect a return to pass the value to my component, it just doesn’t do the Binding because it takes time, and even when it…
-
4
votes3
answers8500
viewsAngular + ASP.NET MVC: Does it make sense?
I’m starting to study Angular2. As I am working a lot with . NET I decided to do a project with ASP.NET MVC 4 and Angular2. Giving a read on hello world of Angular I noticed that Angular has its own…
c# asp.net-mvc software-architecture angular typescriptasked 7 years, 10 months ago Marllon Nasser 3,845 -
4
votes1
answer1777
viewsConcept of Angular System
Well, I started studying Angular (2 and 4) and I was a little lost in a few moments, the "Component" so cited as something essential confuses me a lot. After all what the concept or what is a…
-
4
votes2
answers471
viewsWhat advantages does angular typing offer?
I’d like to enjoy as much as Angular can offer. And one of the things I want to understand well is all what the tipagem of Angular helps me at the time of development. I saw that one of the…
-
4
votes4
answers1265
viewsRequest JSON (http post) with Angular 2+
I am trying to consume an api in the sandbox of braspag and am getting an error message: Xmlhttprequest cannot load https://apisandbox.braspag.com.br/v2/sales/. Response to preflight request doesn’t…
-
4
votes1
answer334
viewsHow to disable XHR messages finished loading in production
I have a system developed in the Angular language in version 4. The system that generates build of the application in production is the webpack. This being used as the basis the following tarter:…
-
4
votes2
answers4622
viewsWhat command using *ngIf to do a larger and smaller check
I’m using ngIF only to change the color of the object, but I’m needing to create one that the result.Mediatotal is less than 70 and greater than 50. What is the correct syntax to do this:…
-
4
votes1
answer198
viewsHow to perform a type of href with parameters on an image using Ionic / Angularjs
I have this snippet of code, which shows an image with a CSS on top: <img class="imagemCapa" image-lazy-loader="lines" ng-src="{{item.cadastra_oferta_foto}}" /> <div…
-
4
votes1
answer355
viewsCreate angular design without using angular-cli
Good night, my dear. Can someone give me instructions (or links to articles) on how to create a project at angular 4 from scratch, without using angular-cli? I am a language beginner and need to…
angularasked 6 years, 7 months ago Bruno Sousa 110