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
-
1
votes0
answers43
viewsIONIC-ANGULAR Problem with: You must include credentials to use this auth method
Hello, After implementing the Login method for my application and trying to log in, an error appears: "You must include credentials to use this auth method". I’ve looked in several places, but I…
-
1
votes1
answer1103
viewsHas some difference between ng-if and *ngIf
What’s the difference between ng-if and *ngIf in Angular 5? The two implementations work normally at Angular 5?
angularasked 6 years, 8 months ago Marcelo Batista 1,617 -
1
votes2
answers917
viewsSelect only 1 radio button with Ionic
I’m trying to render some radio buttons using *ngFor and only that I can select or first or the last option, never the middle options. I got the following array: [ { "title": "First question",…
-
1
votes1
answer117
viewsProblem with angular Expression Angular2 Ionic2
I work with both angular2/4 and Angularjs 1.5. In both I had no problems running *ngFor (for angular2/4) as ng-for (for Angularjs 1.5). However, working now with Ionic 2, when creating a list, with…
-
1
votes3
answers2206
viewsHow to push an object into another object
I have an array of objects and I’m not being able to push a certain object, example I want to push the titulo2 id but nothing I did worked out, follow the structure of the array if someone knows how…
-
1
votes1
answer78
viewsHow do I detect the click at the angle and pass the information to Electron?
I am working on an Angular2 application that runs together with Electron, I need that when clicking on a specific angle link, the Electron application finishes. How do I make this kind of…
-
1
votes1
answer2002
viewsHow to set up admin user and common user in Firebase
I have a web system that will be used by two different types of users, the administrator and the common. There are some options that will only be available to the administrator (for example,…
-
1
votes2
answers248
viewsI cannot print object attribute in log
Well, I have a class: export class Usuario{ private id : string; private bluetoothMAC: string; private cpf: string; private nome: string; private oficinaVisitadas: Oficina[]; private cacheMAC:…
-
1
votes1
answer27
viewsCheck an obj json option and return
Good afternoon, you guys. I’m starting now with Angular 2 and I’m having a problem. I have a json object and inside this obj, I have several inputs and I want to filter by the colors I get in this…
-
1
votes0
answers480
viewsI cannot instantiate class with parameters compiling with Aot
Versions. TUDO ATUALIZADO NA DATA DE HOJE (2017-08-23) @angular/cli: 1.3.1 node: 8.3.0 os: win32 x64 @angular/animations: 4.3.5 @angular/common: 4.3.5 @angular/compiler: 4.3.5 @angular/core: 4.3.5…
-
1
votes1
answer91
viewsManage errors in HTTP calls
I am working on an application with Angular(4+) and PHP and I have some questions about the HTTP calls made to the server and how to better manage the cases where the function returns with error. I…
-
1
votes1
answer40
viewsFormatting input
Hi, I’m having a big problem with javascript. I need an input field that is formatted as follows: Accept only number and points; Accept only one point; After the point only accept 8 decimal places;…
-
1
votes0
answers197
viewsGenerate report through Angular for Web API C#
I’m starting the report part of my system, when making a request to generate a report in a new tab I can even link through some parameters. window.open(this.httpUtil.url('SinistroReports/' +…
-
1
votes0
answers385
viewsIonic 3 Sliding Button
I need to apply the slider effect with these buttons. I have the following html: <ion-row class="row-two-button"> <ion-col class="button-group"> <button ion-button round…
-
1
votes1
answer498
viewsI can’t get the course parameters at angle 5
Every time I try to get the parameters of a route I get an empty object component: ngOnInit() { this.route.params.subscribe( params => { this.token = params console.log(this.token) } ) }…
-
1
votes0
answers222
viewsAngular 4 application slows down over time
Hello. I have an Angular 4.3.5 application that slows down when used after a time (~20 minutes). My scenario is more or less like this: Rest API and Angular static files are on a Raspberrypi B 3…
-
1
votes0
answers99
viewsError calling REST service - Url Encode
When trying to make an HTTP GET call, the service returns an error 500 because querystring should use the + encoded symbol instead of spaces. Ex.: LOS+ANGELES = LOS%ANGELES autocomplete(term:…
-
1
votes0
answers42
viewsUpload preview in modal
I was previewing through another tab: public visualizarArquivo(file): void { var url = window.URL.createObjectURL(file); var a = document.createElement("a"); a.setAttribute("href", url);…
-
1
votes0
answers15
viewsLoad external file settings
I’m developing an Angular application that will connect to external services. However I have no guarantee that the paths of the services this application connects to remain the same and as such my…
-
1
votes1
answer792
viewsError trying to initialize Angular project (To disable this Warning use "ng config -g cli.warnings.versionMismatch false")
I picked up a project I’m studying from a course. I installed the Node department with the command npm install and it all worked out. When initializing webPack with the command ng serve shows this…
-
1
votes0
answers177
viewsPass Session with Node.JS
Hi, I’m having a hard time with Session in an application with nodejs and angular 4. I’m doing it this way: By entering the email and password on the login screen and giving Ubmit in the login form,…
-
1
votes1
answer331
viewsHow to view multi-request loading with Ionic 3 and Angular 4
How can I display a loading on the screen during the request time of 2 or more required with Ionic 3 and/or Angular 4? I tried to call the loading in the two requests, but whenever the request…
-
1
votes1
answer682
views -
1
votes0
answers162
viewsAngular - capture datapicker value
Hello, I’m having a problem in an angular application 2, I have 2 datepicker <input type="text" data-date-format="dd/mm/yyyy" class="form-control pull-right" ng-model="ctrl.campanha.dataInicial"…
-
1
votes0
answers362
viewsDynamically charge with angular 6
I need to load components dynamically, I am using jsPanel to create a window and I would like to pass which module will be created within this window. It is possible to do this, below code snippet,…
-
1
votes3
answers913
viewsConditions with typescript
I’m trying to make a if in typescript but it simply gets ignored and never enters the condition. My typescript code: import { Component } from '@angular/core'; import { NavController, NavParams }…
-
1
votes1
answer415
viewsHow to download PDF file from server in Ionic 2?
I’m using the MPDF_6_0 library to generate Pdfs files, testing unitarily works, but I can’t trigger it through the Ionic project. How to do this? Thanks to all of the community. import { Injectable…
-
1
votes1
answer1368
viewsReturn of Request - Angular4
I started the studies with angular4, and I’m trying to get the return json a simple request through a service. But when calling the method that makes the request, it presents me the following error…
-
1
votes0
answers169
viewsWhich Front End Framework should I invest in
I have seen many posts and comments not counting numerous job openings that require different frameworks Frontend as Angular(JS, 2, 4), Reactjs, Vuejs that by the reads I have done seem all able to…
-
1
votes2
answers102
viewsError reloading a page with Angular
I have an application with Angular that if I click the button with: <a [routerLink]="['/clientes']"> it works normally, but if I reload the page, it gives this error: An unhandled Exception…
angularasked 7 years, 1 month ago Felipe Cardozo 43 -
1
votes0
answers218
viewshttp.post is not working
I am trying to submit a form to an API with the http post. Angular, but I’m not getting it: Code: save(auditoria):Observable <{}>{ let headers = new Headers(); headers.append('Content-Type',…
-
1
votes1
answer35
viewsHow to access the value of the first . map()?
I’m doing an introduction to Redux with angular 4, and when I was doing a @Effect() I came across the following question: @Effect() private newUser = this.actions$ .ofType(UserActions.NEW_USER)…
angularasked 7 years, 1 month ago eduardo costa 99 -
1
votes2
answers121
viewssetTimeout doing lose value of variable?
I’ll summarize the code because mine’s too big, come on. I have a global variable of type Boolean that gets false, when entering an if it has to receive instead of false the true, but when entering…
-
1
votes1
answer446
viewsAngular-cli ng generate library does not work
I have a design in version 5 of the angular, which generates a library using the rollup and works properly. But I’m on the migration from version 5 to version 6 of the angular and wanted to use the…
-
1
votes0
answers68
viewsProblem with Angular and Firebase
I’m trying to create an application with Angular and Firebase, followed a guide I found on the internet, but the data is not being stored in the database! Follows the code of the component…
-
1
votes1
answer141
viewsBrowse input ng-repeat fields Angularjs
/* Retorna produtos banco de dados */ $scope.produtos = []; var carregaProduto = function () { $http.get("app/models/retornaProduto.php").then(function (response) { $scope.produtos = response.data;…
-
1
votes0
answers702
viewsGet the login user id
I am doing a user management where any user can disable any user. But, the logged-in user cannot disable. How I would get the logged in user id? Component.: export class AUsuariosComponent { model:…
angularasked 7 years ago Leticia Fatima 255 -
1
votes0
answers22
viewsyoutubeplayer at the angle
Hello, I’m trying to implement a youtube player using angular 4, but I’m only able to create it using javascript code. Follow the code: var tag = document.createElement('script'); tag.src =…
-
1
votes2
answers71
viewsHow to write to mongodb via API
I have this API(Controller) [Produces("application/json")] [Route("api/[controller]")] public class TypesFieldsController : Controller { private IAddTypeFieldService addTypeFieldService; public…
-
1
votes2
answers767
viewsAnchor link to direct to a div does not work
I’m using Angular 2+, I’m trying to add an anchor that when clicked will take me to the target div, but when I click the anchor, my site is reloaded and adds the #parallaxdiv link after the…
-
1
votes1
answer911
viewsReceiving data from an observable
I’m having a problem using an Observable. While inside the Ngoinit method, when fetching the data, I get the array correctly and Seto in the class variable. However, when trying to access data…
-
1
votes0
answers83
viewsLoad component dynamically
How do I load a dynamic component depending on the module I’m seeing in Angular? I want to have a sidebar that will show content according to the module. For example: If you are looking at the Users…
-
1
votes2
answers687
viewsAngular 2: My component does not work on index
I would like to interpret my component within my index.html, about.html, contact.html, and other pages. I created the component using Angular cli. My structure is as follows: The code inside my file…
-
1
votes1
answer343
viewsCalling route from a button is not working
I need, when I create an Operator, after creating, I should call another screen, the list of operators. It turns out that it is not working. The route is called Operator and how I put on that…
-
1
votes2
answers490
viewsProblem with angular 5x routes
I created a new module in my application with my routes and made the required inports in my app.modules, but in the browser console an error which I could not solve and also found no answer for the…
-
1
votes2
answers860
viewserror: Uncaught (in Promise): Error: Value must be an array in Multiple-Selection mode
Giving a compareWith, for the purpose of when I edit, the dropdowns can already be filled with the assigned values. By doing this, I catch this mistake: Uncaught (in Promise): Error: Value must be…
-
1
votes0
answers456
viewsTypeerror: list.map is not a Function
I get the error described in the title in this situation: carregarCategorias() { this.itemService.listarCategorias().then(lista => { this.categorias = lista.map(categoria => ({ label:…
-
1
votes1
answer459
viewsCentralize div content in Alertcontroller
I have the following code below let alert = this.alertCtrl.create({ message: '<div><img height="50" src="assets/imgs/success.png"></div><div>' + '<p>Cadastrado com…
-
1
votes1
answer163
viewsProblem at angular5 with Httpclient
I’m trying to do a requisicao with angular5 for learning purposes and I’m not with you, follow the console log and source code. ERROR Error: Uncaught (in promise): Error:…
-
1
votes1
answer34
viewsFilter using N2-smart-table masks
I’m using Angular 6 with N2-smart-table. I want to search a string with and without mask (like a Cpf or cnpj). Ex.: 28871154000178 and 28.871.154/0001-78 must return the same record when searching…
angularasked 6 years, 3 months ago Caio Ladislau 198