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
votes1
answer112
viewsWhy am I not receiving the requisition data?
I have an Angular frontend application consuming an Laravel API. I’ve never had problems like this in other cases. But when I try to update a record, it just doesn’t send the data to Laravel. But if…
-
1
votes1
answer396
viewsCreate variable with an object property - Angular
I am trying to create a variable to set one of the properties of an object obtained by the get method. When I give console no subscribe I recover the value of the array, but I’m having difficulty…
-
1
votes1
answer251
viewsError: That is not Equal to the supplied origin
I’m trying to get records that are in an API on the server Heroku with the following URL https://mdw-arm-wladimir.herokuapp.com/noticias But when I receive this url in my Angular project it…
-
1
votes0
answers61
viewsPassing data with data property (Routes) and State (Navigate)
After a click on the button, I need to go to another route. And set the filter to return a certain data. I didn’t want to use queryParams, nor stop to not mess with the filter. I use the navigate…
angularasked 5 years, 8 months ago Júlio Saldanha 56 -
1
votes1
answer560
viewsProperty 'includes' is Missing in type 'Subscription'
I am wanting to map the list of questions and throw them in the questions property of my JSON object, but ai at the prompt gives this error: "ERROR in…
-
1
votes1
answer45
viewsDoes anyone know why elements already added inherit the new colors?
I’m testing a method here, to add tags, I want one of each color, however, with ngFor Angular, the colors are all the same to each new tag added. Follows the code: <div class="container">…
-
1
votes1
answer315
viewsCalculate and Decrease Array Values
I am trying to decrement and calculate values of an array unsuccessfully. The decrementation works to a certain extent, so it decreases different values than what is clicked on the checkbox and the…
-
1
votes1
answer34
viewsAngular JS Expressions does not work?? The value 10 does not appear and Work? appears with keys. Help!
<!DOCTYPE html> <html ng-app> <head> <title>Teste</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.8/angular.min.js"></script>…
-
1
votes1
answer3139
viewsAngular 7 - Input validation in a dynamic form
I made a form where the fields (input) appear according to the category to be created. The category is chosen when the user clicks on it, opening a new pro form tab. In the form, you have fields…
-
1
votes1
answer166
viewsError creating an animation between routes using Angular 5
I’m making an application that uses the most current structure of Angular (v5). I had already made the implementation of BrowserAnimationsModule in previous versions and I had no problems but…
angularasked 6 years, 7 months ago LeandroLuk 4,989 -
1
votes0
answers50
viewsformArrayName
I am not being able to reference formArrayName="complements" that is inside formArrayName="items" I get an error on the console ERROR Error: "Cannot find control with path: 'items ->…
-
1
votes0
answers84
viewsHow to insert a field in a Firebase document by Ionic Angular code?
I am not able to insert a field with the user id in a document, I need the user.uid to become a field of type Boolean I tried that, but I miss the point: let{ user.uid : true } I also tried to add…
angular ionic firebase firebase-databaseasked 5 years, 6 months ago Leonardo Henrique de Andrade 11 -
1
votes0
answers61
viewsAngular and server
I must have done something wrong. I created this class: package br.com.netsoft.configuracao.auth; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException;…
-
1
votes1
answer741
viewsHow to change font in an Angular project?
I’m trying to change font in an Angular project and I’m trying to add "Styles" in the.json angular and it has no effect whatsoever. Does anyone have any suggestions or can indicate me a process?…
-
1
votes1
answer2028
viewsFormgroup Angular
Hi, I’m new to angular and would like to know how I use more than one sternal validation with Formgroup. Currently my code is as follows... constructor(fb: FormBuilder, public router: Router){…
-
1
votes1
answer139
viewsAccess a property of a saved object in localstorage
After logging in, I saved a user’s id and token to my localStorage via a currentUser-named object. How can I access the id and token property of this object when recovering from localStorage? What I…
-
1
votes1
answer52
viewsHide kendoUI text editor button
I’m using the kendoUI text editor I need to remove the last button of the editor (insert image). The rendered tag is the last, which has inside the image button. I tried something like:…
-
1
votes1
answer699
viewsDoubts of Angular masks
Hi, I’m new to Angular and I’m having trouble with my mask! I’m wearing the masks of "Angular-input-Mask"; I have a form that has a field 'CPF', the mask is applied perfectly. Visually when I type a…
-
1
votes0
answers48
viewsSet the initial height of the textarea according to its content
I use a reactive angular form that when saving leaves all fields disabled. It turns out that textarea creates a scroll and makes it difficult to read for those just viewing. I’ve tried the following…
-
1
votes0
answers132
viewsWhat is the best way to maintain status between routes with Angular?
I have a search screen where I have some filters, after I have done the filters, I can click on the records and go to a "details" screen and then I can edit or go back to the search screen. What is…
-
1
votes0
answers356
viewsList the value of a Subscribe at Angular 2+
I have a component that connects with another sister component. From that, I made a service so that it is possible to make this communication. So far so good. The problem is that I can’t recover the…
-
1
votes1
answer957
viewsHow to include an external Javascript file in the angular?
In my old projects I had conditions that take advantage of most of my css codes when I started creating my projects in Angular, while searching I learned of a file called Styles.css that is inside…
-
1
votes1
answer147
viewserror while generating angular build
i have an angular design that runs normally in the production environment, but I’m looking to build it and I’m getting the following error when using the npm run build command: ERROR in Error: Type…
angularasked 6 years, 7 months ago Davi Resio 187 -
1
votes1
answer223
viewsHow to create a directive in Angularjs that creates a mask and did not modify the ng-model?
I created a directive where it serves as a mask for current account, so when I type a value always the most right value in the input is the digit of my account, until then beauty, is working. The…
angularjs angular angularjs-directives angularjs-scopeasked 6 years, 7 months ago Jonathan Guilherme 13 -
1
votes0
answers80
viewsToastcontainer - Error giving build --Prod
When I run the project in dev works perfectly, when I try to give the build in Prod, of that mistake... WARNING in Invalid Animation value at 221:41. Ignoring. < That one I solved ERROR in Error…
-
1
votes2
answers9406
viewserror in using packages installed via npm with -g
installed npm install typescript -g and npm install @angular/cli -g and I don’t have access to tsc and ng. 'ng' não é reconhecido como um comando interno ou externo, um programa operável ou um…
-
1
votes1
answer79
viewsField returning date in Brazilian standard and the other in American in typescript. How to validate?
I have a field validation problem, in which when the date returns from my API in American format is made the conversion to Brazilian as below: formatDate(date: string) { if (!date) { return '-' }…
-
1
votes0
answers121
viewsAdmin Template Materialize
The company bought a template to implement a menu, but clicking the menu button is giving this error in the console: FullComponent.html:34 ERROR TypeError: Cannot read property 'toggle' of undefined…
-
1
votes2
answers581
viewsMultiple GET requests with Angular 4/5
I’m making a query in an API (SWAPI). The return is an object with all the information of the Star Wars characters. So far so good. But inside this object, I have some sublevels that are arrays and…
angularasked 6 years, 6 months ago Daniel Swater 1,251 -
1
votes1
answer97
viewsHow to end an inactivity session using Angular7
I would like to end user activity if there is no click on any page of my application, I am using Angular and Nebular.
angularasked 5 years, 1 month ago Jefferson Magalhães 71 -
1
votes1
answer75
viewsHow to know the route before redirecting at Angular 4
I have the following code snippet that redirects to a 404 page if the path is not set within the application. { path: '**', redirectTo: 'paginas/pagina404' } But I would like to show on page 404 the…
-
1
votes1
answer69
viewsHow to generate my Postgresql Baseurl (link) that is in Heroku to integrate to my Angular front end?
My question is: how do I link (baseurl) to which my front-end access the data coming from this database (Postgresql) that is hosted on Heroku? My Heroku’s Postgresql releases this information: As…
-
1
votes1
answer86
viewsHow to concatenate a data + string when passing component property?
I’m using a component of kendoUi that I need to pass on the property [title] my variable local.LocalNome and local.LocalDataCadastro, but I need to apply the date pipe to my date variable. I tried…
angularasked 5 years, 1 month ago veroneseComS 2,752 -
1
votes2
answers471
viewsRedirect before logging into the system - Angular
I have a login screen, with the total "/Authentication/login". How to do at the angle when the user enters the system, it goes straight to this route ? After logging in if it enters this route, it…
-
1
votes0
answers135
viewsComponent matDatepicker
Thus the value coming from the database is populated in the component <input matInput disabled name="dataInicio" [(ngModel)]="empresa.dataInicio" placeholder="Data início de atividade do banco…
-
1
votes2
answers1690
viewsError Datepipe Angular 6
I just upgraded my Angular 5 application to Angular 6. When saving a record in the Firebase database using mat-datepicker checking in the database I noticed that is correctly saving the date with…
-
1
votes2
answers93
viewsCall app.service when reloading the page
When starting the application, the function is executed first getBanners() of the service banners.service.ts and only then is the this.headers of the service app.service.ts. If I switch pages, it…
angularasked 6 years, 6 months ago Rodrigo Pauletti 127 -
1
votes0
answers1036
viewsError: Uncaught Typeerror: Object(...) is not a Function
I am developing an application using Cordova + Ionic + Angular, but I have the following problem. From one minute to the next started giving the following error in Chrome: Uncaught Typeerror:…
-
1
votes4
answers259
viewsError While Consuming Api at Angular
Good Afternoon I’m consuming an api (Pokemon), But it doesn’t work, Pokelistgemcomponent.html:6 ERROR Error: Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only…
-
1
votes0
answers71
viewsError in passing json value from web api to ngfor
This is the error you are making when calling the api. think this is something in exiting the api or receiving it in my other project? ERROR Error: Cannot find a supporting differ Object '[Object…
-
1
votes1
answer238
viewsHow to implement Primeng Photo Gallery?
Personal greeting, I’m trying to implement an image gallery as you can see in the Primeng demo template below; Gallery However I am having difficulty due to lack of experience, please my goal and…
-
1
votes0
answers766
viewsIs it worth studying versions prior to Angular 6?
I tried to search on the internet and in the forum itself, but I did not find something very clear and direct to my question so I thought I should ask here because it may be the doubt of some.…
-
1
votes1
answer73
viewsGet problem using google’s Angular API
I have an angled application that should search the Google API a long and lat. I created this method below to configure my call HTTP.GET(): ObterGeolocalizacao(): Observable<any> { const cep =…
-
1
votes0
answers40
viewsMashup Qlik Sense - MIME invalido
I am using Meshup with Angular 1.0.0 in Qlik Sense, when importing the application in the browser I have the following error: "O script de {caminho do meu script}, foi carregado apesar do seu tipo…
-
1
votes2
answers1115
viewsHow to work with Angular ngIF with screen resolution?
See below how the web page looks; Now look at the screen with resolution below 992px This happens because of the css column I would like to remove this column when it reaches less than 992px with…
-
1
votes1
answer531
viewsProperty 'catch' does not exist on type 'Observable<Httpevent<any>>' ANGULAR 6
I created an Interceptor to catch all errors using angular 6, but catch returns this message. intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>{…
-
1
votes1
answer31
viewsDynamic loading of components based on their reference
Everybody, good afternoon, everybody. I’m having the following problem. Given a structure: [ { title: "A", content: ComponentReference }, { title: "B", content: ComponentReference }, ] I need to…
-
1
votes1
answer181
viewsMultiple Dependent Requests at Angular
Hello, I’m doing a process at the angular, in the 'ngOnInit()' method, where I need to perform 3 HTTP methods, which are asynchronous. one depends on the other’s answer. for example: 1° call: get a…
-
1
votes1
answer107
viewsInteraction in browser behavior when leaving the page
Is there any way to open a question modal, when the person tries to quit a game in the browser, type, changing the address in the URL or giving refresh, or even more difficult, wanting to close the…
-
1
votes1
answer99
viewsHandle HTTP Request with Item Array as response
Whoa, all right, guys? Maybe this question won’t help anyone, but I don’t know but what to do, you Stackoverflow guys are my hope. Next, on the page I’m mounting, will show all the plans that an…