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
answer30
viewsHow to allow only numbers and semicolons in input text?
I have an input in my system where the user must enter code (only numbers), however he can put several codes, and to separate uses semicolon (;). To make it work I created the input as text and put…
-
0
votes0
answers9
viewsDisplay only 4 indicators in the Carousel (Primeng)
Good night, you guys. I’m trying to leave only 4 Carousel indicators being displayed on his footer. I am using Primeng, but on the indicators I did not find in the documentation something that…
-
0
votes0
answers7
viewsHow to capture the backbutton event on a PWA (Ionic5/Angular11/Capacitor) site by clicking the back button of an Android phone
I used the following code: import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; import { Location } from '@angular/common'; import { Platform, AlertController, IonRouterOutlet }…
-
0
votes0
answers32
viewsData compared within an array
So I’m making a screen where the person puts their name and date of birth, adds in an Array, but now I want the person to choose to list by name or date of birth, but I don’t know how to use my…
-
0
votes0
answers11
viewsError: Invalidpipeargument: '[Object Object]' for pipe 'Slicepipe'
I am developing a system, which lists logs and is doing the log listing correctly. But there’s a mistake I don’t understand. LogComponent.html:24 ERROR Error: InvalidPipeArgument: '[object Object]'…
-
-1
votes1
answer355
viewsSave user - Angular2/4
I’m new at angular. Take away a question how could you save me logged in user, so I don’t lose my user if browsing is reloaded ? As if it were a PHP session. Thank you for your attention.
angularasked 7 years, 3 months ago Weslei Ferreira da Silva 1 -
-1
votes1
answer70
viewsCan someone help me with the integration of angular 5 with firebase real time?
I need to integrate the firebase database to an application in angular 5. I took the code generated by firebase, created a firebase config file and put it there I made the import in the module. I’m…
-
-1
votes1
answer74
viewsFila de Observables
My application has a service that runs an observable every time I click a button. The problem is that if I click several times on the button it runs the Observable several times at the same time. I…
angularasked 7 years, 1 month ago Ruby Dev Junior 51 -
-1
votes1
answer54
viewsVariable copy in angular 2(typescript)
I need to make a copy of an array without using reference Example var a = ["teste", "teste1"]; var b = a; a[0] = "teste3"; b[0] = "teste4"; console.log(a) //mostrar teste3 console.log(b) //mostrar…
angularasked 6 years, 4 months ago Bruno Miqueas 127 -
-1
votes1
answer605
viewsTypescript, dot and comma or no?
I am recently entering the angular world, and came across some tutorials where not even imports and also the codes are without completion followed by ; The use really becomes necessary? And what’s…
-
-1
votes1
answer162
viewsReturn the generated id
I am using Angular 6+ and springboot. As Gero an id and recover it? ex: I have the following page: When the user clicks on "New" will make a post. And this id that was generated will appear in the…
angularasked 6 years, 2 months ago Cleriston Lincoln 49 -
-1
votes1
answer610
viewsHow to change the font size of all pages using Ionic 3’s Range?
I have the following html code [Settings.html] <ion-item> <ion-range min="1" max="4" step="1" snaps="true" [(ngModel)]="saturation" color="grey"> <ion-label range-left…
-
-1
votes1
answer505
viewsDoubt routerLink and route.navigate(<route I want>)?
'Cause when I use the routerLink the destination tab executes the commands inside the ngOnInit() and when I use the this.route.navigate([<rota de acesso>]) is not executed? I wonder if you…
-
-1
votes2
answers707
viewsExchange value of a variable of another Angular component
Hello, I have a Component that is called errorLog, inside it has a method called Logout, which is called when I click on 1 logout button, but after displacing you and redirected the login page,…
-
-1
votes2
answers378
viewsWhy is it necessary to raise ng in 0.0.0.0?
I installed the Angular inside a Docker container (fabiojanio/Ionic), however, I am only able to access the application when I start the server in this way: ng serve --host 0.0.0.0 I would like to…
-
-1
votes3
answers745
viewsError with Bootstrap 4 at Angular 5
I hit with the following problem in Angular while trying to install Bootstrap in its version 4: ERROR in…
-
-1
votes2
answers481
viewsCors error at angle 6
Guys I’m having this mistake in a project: Failed to load http://127.0.0.1:8000/hqi/pages: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin…
-
-1
votes1
answer150
viewsSend a POST and how do I recover the data in ANGULAR?
onSubmit() { console.log(this.formulario.value) this.http.post(this.configUrl, (this.formulario.value)).pipe( map(res => res)) .subscribe(dados => console.log(dados)) } This is my post code,…
-
-1
votes1
answer453
viewsTake the value of a radio button
Good evening, I’m finding it difficult to work with my form’s Radio Buttons at Angular. I need to take the values of my radio Buttons, but no solution found here works, neither with jquery nor with…
-
-1
votes1
answer60
viewsIONIC WITH FIREBASE CLOUD FIRESTORE
is a simple question, I want to realize this select on Collection with a Where, as I realize? this.usuarioCollection = this.db.Collection('usuarios'); this.usuario =…
-
-1
votes2
answers808
viewsBootstrap 4 - Modal Form close on button only
I have a modal that is displayed in the loading of the page with some fields, where I need it to be closed just on the exit button, but if I trigger the click outside the modal it closes. I’m using…
-
-1
votes1
answer137
viewsUikit with interpolation in Angular 7
I’m using Uikit with Angular 7, and at the moment I’m trying to set the value of 'title' tooltip coming from the Angular component, something like: <progress class="uk-progress"…
angularasked 5 years, 10 months ago Alessandro 421 -
-1
votes1
answer636
viewsProblems when executing Angular project
I created an angular project for academic purposes. And I imported the Primeng library because it has several good components. However, when I will run my project, the following error is occurring:…
angularasked 5 years, 9 months ago GUSTAVO HENRIQUE LOPES SPACHUK 93 -
-1
votes1
answer142
viewsAngular 7: How to identify the Encounter of a File?
I have a function that runs when uploading files, I would like to identify the type of this Encounter. I am using the code below. async uploadFile(event) { var document; var reader = new…
-
-1
votes1
answer2879
viewsHow to make Ionic line break 3
I’m trying to break line inside an object in Ionic 3, I’ve tried with n, n with and nothing works the text always comes out in a single line, someone knows a solution thanks, follow the code export…
-
-1
votes1
answer39
viewsHow to use a direct Html tag on my object?
Example, I want to make a list with the HTML tag <ul> <li>primeiro item</li> <li>segundo item</li> <li>terceiro item</li> </ul> And my object is like…
-
-1
votes1
answer66
viewsHtml Coverter for Text
I’m in a project to create an angular site, the site should have an integrated text editor, I’m thinking of using nd2-ckeditor (accepted suggestions) the issue is that the editor returns me a text…
-
-1
votes1
answer31
viewsI can’t pass a value to a variable
Because in console.log(x) the terminal shows me the array and in console.log("Categories: " + this.Categories) it shows me Undefined? buildCategories() { const teste = this.categoriesService.read();…
-
-1
votes1
answer36
viewsChanging the font-size of the field with value coming from the database
Good morning, I get from the database a vrFonte="x" with a value x, this value that comes to me will be the size of the input source, is it possible to make the field assume the size of this source…
-
-1
votes1
answer278
viewsProblem consuming JSON with Angularjs
I’m trying to run a test to get the data from a JSON file but I’m not getting it. app.component.html </div><div ng-app="appCursos" ng-controller="meusCursos"> <ul> <p> {{…
-
-1
votes1
answer485
viewsSearching Google geolocation in the angular
Hi, I have to search Longitude and Latitude, by Google API, with Angular.. I’m using this code to perform the requisition: constructor(private http: Http, private vwServicePagination:…
-
-1
votes1
answer844
viewsLimit the Ngfor
I would like to know how to limit my Ngfor to pass only 6 times?? In my . TS imported this module below... import { NgForOf } from '@angular/common'; I tried to use it this way below but it didn’t…
-
-1
votes2
answers276
viewsHandle data collected through a JSON api
I am collecting data provided by a JSON API. With the code below I can see that the data was collected within the Subscribe. But outside it, inside the file itself . TS I cannot manipulate this…
-
-1
votes2
answers368
viewsHow do I log out at Angular 4?
good afternoon, I would like to know how to log out in angular 4, because I am developing a Dashboard and only this requirement is missing Thanks in advance. import { Component, Input, OnInit } from…
-
-1
votes1
answer592
viewsGenerate a PDF page using Java on the back and angular on the front
I would like the help of someone, I am developing a system using Java with Spring Boot framework, and Angular on the front, and I would like to generate a PDF with a predefined template, just…
-
-1
votes2
answers1133
viewsHow to login validation in Angular?
I would like to know how to do it in case the user enters a user login and invalid password appears the message "Invalid login". Follow the code I’ve already made. import { Component, OnInit } from…
-
-1
votes2
answers107
viewsDon’t I have to worry about the frontend?
I would need to worry about the vulnerability of frontend or just with the backend?
-
-1
votes1
answer79
viewsHow to store data sent from an API into a variable in IONIC 4?
I have a function in Ionic that receives an array from the API and shows the received data public info; async showinfo() { await this.authService.getInfo().subscribe( data=>{ this.info = data;…
-
-1
votes2
answers43
viewsError while running IONIC server
This week I caught a freelance made with an older version of IONIC, a bad code and tals, just have to give maintenance. But I cannot run the server. Every time I try, I get the following error shown…
-
-1
votes2
answers62
viewsWhy do we use the word 'value' in the function?
Because we use the word 'value' in the function? this.x.subscribe(valor => { if(valor){ alert(1); } else{ alert(2); } }); It can be replaced by any other word?…
-
-1
votes2
answers175
viewsRouter Link with variables
again I have brought a doubt about Angular!! I am angular developer 1,5 years and to date I have not found a way to use Routerlink passing the URL through a variable. The ways I tried were all…
-
-1
votes1
answer97
viewsJoin two objects in another object
Eae guys wanted to know how to pick up two objects and put everything together in a third object I speak two objects because the angular is saying that they are objects and not arrays. var obj1 =…
-
-1
votes2
answers190
viewsPass property to the Angular System
Good morning, Could help me pass a property for an angular Component. I have a page and call <app-top-bar name="Agendamento" ></app-top-bar> How I’ve used React is more or less the way…
-
-1
votes1
answer67
viewsAngular 8 - ngxTextHighlight
Expensive, I’m starting with Angular now and it’s been a long time since I developed for front-end. And I’m having some doubts that I’d like to ask the community for help. So come on. I have a page…
-
-1
votes1
answer29
viewsblock data recording offline Firebase
I have this function that performs data recording in Firebase: addPedido(pedido: Pedido) { this.pedidosCollection.add({ ...pedido, log_criado: this.timestamp }) } If you do not have internet…
-
-1
votes1
answer270
viewsHow to apply a conditional style at angular 8
Good morning I would like to include a conditional formatting in my project’s css. This style would change as the product status and status are: New service, In progress, Completed or cancelled.…
-
-1
votes1
answer208
viewsBad Request 400: When accessing API with Ionic 3
I’m getting on my console the Bad Request 400 response to my API call: My app.api.ts in the app folder is: export const MEAT_API = 'http://localhost:1337' And my main code is: submit(){ var link =…
-
-1
votes1
answer220
viewsERROR in src/app/services/auth.service.ts:15:21 - error TS2339: Property 'auth' does not exist on type 'Angularfireauth'
Hello, I’m creating an authentication project with Ionic and firebase, but I came across this error and I can’t fix it. So far the app is only performing the Log in and Log in methods.…
-
-1
votes1
answer279
viewsHow to calculate the current and future date and receive the difference in days
I’m using Moment.js to do date calculations, thinking about it I did this function below to make the current date calculation with the date of birth: onCalcularData(date: any): number { return…
-
-1
votes1
answer50
viewsChange value from back to front end (in service)
I am receiving a distinct back object (normally I have a back pattern) because of that the values of id came divergent than I need, I would change them in the service to fit on my front but do not…