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
answer29
viewsCalback not working Swipeout in Framework7
page commands.html <div class="list"> <ul> <li class="swipeout deleted-callback"> <div class="item-content swipeout-content"> <div class="item-inner"> <div…
-
0
votes1
answer224
viewsIOS emulator in Webview (iframe) losing the Asp.net session
I have a problem with my project in Ionic, below follow the versions. Ionic: 4.1.2 ASP.NET: 2.1.502 A little about my project... It has a route in the application where it generates a Webview…
-
0
votes1
answer1261
viewsHow to change the CSS of primeNG components in Angular?
menu.component.html <p-menubar class="menuPerson" [model]="items"></p-menubar> menu.component.css .menuPerson{ background-color: olivedrab; font-size: 14px; } menu.componentts. import {…
-
0
votes0
answers27
viewsHow to organize form messages in Ionic 3 project?
I’m having a question as to how best to organize my error messages within Ionic 3 using Angular 6. I created within my Recovery-passwrod.ts an array of messages : validation_messages = { 'cpf': [ {…
-
0
votes1
answer459
viewsmat-table Sorting does not work in Angular
I’m trying to Sorting my columns with the material table Sorting, but I click on Sort and nothing happens. My template: <table id="tabelaLogs" mat-table [dataSource]="dataSource" matSort…
-
0
votes1
answer336
viewsAngular: persist get return in function/variable
booksList: Book[]; listById(id: number): Book{ this.http.get<Book>(`${url}/list/id=${id}`) .subscribe((response)=> { this.book = response; console.log(this.book); //aqui existe o livro…
-
0
votes1
answer886
viewsGrab id of the button clicked on Angular
I have several buttons with the same function and try to get the last id clicked, but always only one id comes. HTML: <div class="container"> <div class="row"> <div class="col-sm">…
-
0
votes1
answer50
viewsAngular: error in model with object listing
I have these 2 models, and the book has a list of language-like objects. Model book import { Language} from "./language"; export class Book { id: number; name: string; language:…
-
0
votes1
answer28
viewsIs it possible to turn validation into form error in Angular?
It’s kind of hard to explain. I have a form that checks a field if it is greater than zero. If so, I show a message to the user. I want to turn this into a form error, because I can only release the…
-
0
votes1
answer46
viewsAdministrative layout problem when logging in (When going through ngIf jquery crashes)
I am having problems with administrative layout + login. Both Dashboard and login are at the same application level. When the user is redirected to the login it opens the screen containing 3…
-
0
votes1
answer1056
viewsAngular 7 autocomplete with http
I have in my project a field that I need to use the autocomplete. But it’s not working. Could someone help me? Component filteredCostCenter: Observable<CentroCusto[]>; ngOnInit() {…
-
0
votes1
answer221
viewsHow to organize Enum in an Ionic 3 project
I have a group of static messages for form field validation. These messages are present throughout the application and so I would like to use some way to make them dynamic and organized within the…
-
0
votes1
answer327
viewsAngular 7 error: ERROR Typeerror: jit_nodeValue_5(...) is not a Function
I have a simple page with 3 modals, which are opened by clicking buttons to request yes or no to perform actions. In one of them I only have this error, by clicking the yes button of the…
-
0
votes0
answers162
viewsAngular does not work by mobile browser
I am trying to save a form by mobile browser (Chrome and Opera), however, after filling the data and ask to save nothing happens, the form is not submitted, the request does not arrive even in the…
-
0
votes2
answers834
viewsHow to send headers on all Ionic HTTP requests 3
My code is like this, I would like to know how to send an Authorization token in all http requests made in Ionic 3: import { Component } from '@angular/core'; import { NavController } from…
-
0
votes1
answer53
viewsHow to show data stored in Firebase on Ionic?
Provider import { AngularFireDatabase } from '@angular/fire/database'; import { Injectable } from '@angular/core'; @Injectable() export class ContatoProvider { private PATH = "contatos/";…
-
0
votes2
answers225
viewsGet Access Token in Ionic
Through the command prompt I get an access token. curl -v https://api.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: pt_BR" \ -u…
-
0
votes1
answer291
viewsAngular material table is not doing sorting
I am trying to put sorting in my material angular but by clicking on the corresponding ordering arrow nothing happens. I tried something like: <mat-table #table id="tabelaLogs"…
-
0
votes1
answer2032
viewsHow to generate a build (production) of an angular project?
I’m trying to generate the build of an Angular project, but every time I turn the command to it ng build is presented me several errors, but searching I could not solve, someone would have a light?…
-
0
votes1
answer363
viewsCannot read Property 'hasError' of Undefined when trying to put Validator required
I’m trying to put a required Validator in a field, but I’m getting: ERROR Typeerror: Cannot read Property 'hasError' of Undefined I tried something like: <form [formGroup]="variacaoForm"> My…
-
0
votes1
answer56
viewsSort mat-angular-table is prioritizing uppercase letters
I’m using the mat Sort to sort a mat-table at the angle, the problem is that when I sort upwards the algorithm is taking uppercase letters as a priority, so if I have a table with the following…
-
0
votes3
answers342
viewsFunction that adds/removes element of the array by clicking checkbox at the angle
I have a checkbox that when clicked I should add/remove this element depending on the action. I tried something like: adicionaProdutoSelecionado(produto,event){ if (event.target.checked === true) {…
-
0
votes1
answer52
viewsRepeating structure that adds elements in an array without repeating elements
I have an array with the name Products. I need to create a function that whenever called adds the elements of Products for the product array Products. I tried something like:…
-
0
votes1
answer43
viewsHow to create a Pipe by filtering a list of items, where there is an array of objects in this list? Is it possible to filter this object array as well?
I’d like some help with a pipe. The purpose of the pipe is to filter into a list of vehicle advertisements some properties. For example: brand, fuel, type and etc. So far everything works, but I…
-
0
votes1
answer76
viewsUse Elvis Perator in conjunction with ngIf
Hello, I have the following element: Product.description_b2w.description Sometimes that description does not exist in this product, so when I try to apply ngModel and *ngIf in it I get: Cannot read…
-
0
votes2
answers41
viewsmy textarea does not want to show content with you in my ngmodel
I have an object that I receive from a request, I am trying to put the value of this attribute in the template but it does not appear in the textarea. for(let…
-
0
votes1
answer379
viewsBlock weekends in the Angular Material datepicker
I am using the Datepicker of Angular Material and need to block Saturdays and Sundays in order not to be selected. How can I do this ? Code: ts import {Component} from '@angular/core'; /** @title…
-
0
votes1
answer33
viewsCreating/changing entities in batch
I’m reading a book from Angular 5 + Asp.NET Core 2.0 (although I’m using Angular 7 and Asp.NET Core 2.1), and I’m trying to do the system that this book teaches me to do. It is a quiz system, where…
-
0
votes1
answer408
viewsAngular 7 / Typescript: grab value from within an onload function (upload files, grab content from a file)
I have the code below where I upload a file and want to get its contents in a variable. For this I use the function onload that gets me the result, which is the contents of the archive. But the…
-
0
votes1
answer553
viewsScroll problem when focusing on an input (Ionic)
Guys, every time I test my app on my phone, and I click on the input you have, the keyboard is covering the whole screen and I can’t see what is being typed in the input, I’ve looked at my css and I…
-
0
votes1
answer90
viewsRetain a request after 5 seconds in case of error
I need to retain my http request after 5 seconds in case of error. I tried to implement with retryWhen but I get: Property 'retryWhen' does not exist on type 'Observable'. [2339] I tried so:…
-
0
votes3
answers426
viewsProblems with Angular Material
I am trying to insert a "dialog" component of Angular Material, but the console is displaying the following error that I cannot solve: WARNING in . /src/app/app.module.ts 19:16-31 "export…
angularasked 5 years, 9 months ago Munir Baarini 673 -
0
votes1
answer130
viewsRepeat structure to replace the value of one array to another
I have the array this.produtoAlvoAlterar.variacao.preco_variacao I need to replace the variable tag of this array with the value contained in the array…
-
0
votes2
answers351
viewsAngular error when returning function string in service: Type '() => string' is not Assignable to type 'string'
I’m having the following problem while trying to return a string of a variable of service for any other function, which is strange because all variables are strings like the return of functions.…
-
0
votes0
answers319
viewsDaughter Routes in Angular
I have a daughter route that opens a component, the component is not loaded, but the url yes what can be? App Routes.ts import { Routes } from '@angular/router' import { HomeComponent } from…
-
0
votes1
answer2708
viewsAngular set value in radio button
I have a field on the form with radio Buttons: <div class="form-group" > <label class="control-label col-md-4">Tipo Atividade2*:</label> <input type="radio"…
-
0
votes1
answer709
viewsAngular [Material] - Inject components dynamically into a template
I have two static elements in the project, which will never go away, only the content, these are the top menu and a sidenav, from the route I want to insert components inside the…
angularasked 5 years, 9 months ago Igor Freitas 3 -
0
votes1
answer2223
viewsCannot read Property push of Undefined Angular
I have the following model: produtosConfirmadosAnuncio.model.ts: export class ProdutosConfirmadosAnuncio{ idContasAnunciarB2W:[{id: number}]; } I start it this way: produtosConfirmadosAnuncio:…
-
0
votes1
answer65
viewsCalculating values in column
I have a doubt on how to calculate values that are in column, I was able to calculate the values in line, however, in columns I am not able, the need is to create subtotals of each column I have if…
-
0
votes1
answer58
viewsCreate line in a dynamic way
The doubt is the following I need to create a row in my table always the date change how I could do it follows the table: <table class="table table-striped" height="100%"> <thead>…
-
0
votes0
answers131
viewsCondition *ngIf for applying a class
I am trying to apply a class when my element is clicked, but it is within two *ngFor. I thought to do with multidimensional array but apparently this is not the correct form because it is applying…
-
0
votes1
answer76
viewsHow to put mat-chips inside a textarea
I’m using the Material Chips Angular together with a textarea. I would like to place my Chips list inside my textarea. Currently works as follows: I wish I had something like: My current code name:…
-
0
votes0
answers77
viewsproblem to update data at angular
the problem is following when I will update the data of a client I have to enter again all the data but the data that is not used will be null I’m using the angular nodejs and mongodb the code is…
-
0
votes0
answers58
viewsAngular API folder (how to mount this project?)
I took this project from a tutorial. The porblema is that it does not clarify where I have to put the folder "api" inside the Angular CLI project is giving error and the sql connection does not…
-
0
votes1
answer108
viewsHow to sort more than one table with Angular matSort
I have the array object this.sortedData: An *ngFor is applied in the Accounts array, as you can see in the template, each Accounts position will be a table: <div *ngFor="let tabelaAnuncioContas…
-
0
votes0
answers62
viewsDoes the angular renderer2 have any method to click on an element?
I have a modal bootstrap that at some point of my TS code I must close it. Currently to close this modal I use a local variable in the close button of the modal and use viewChild to click on it:…
-
0
votes1
answer181
viewsAngular - How to send an object inside a model in a POST method?
Good afternoon, I’m having a problem sending a POST to a published API on account of one of the expected parameters being an object, so the expected json is as follows : {"Cargo": string,…
-
0
votes1
answer347
viewsHow to chain async functions in typescript?
I have two asynchronous functions A and B. How do I initialize function B only after function A is complete? import { Component } from '@angular/core'; import { Options } from 'fullcalendar'; import…
-
0
votes1
answer49
viewsNativescript + Angular: Transition when redirect
You can create a "slide" transition effect using outlet router in an application built with Angular + Native script? Creating the effect on a button or any other element is fine, my problem is when…
-
0
votes1
answer24
viewsError using getDetails() from googlemaps API, Typeerror: this is null (Ionic, angular)
I’m new at Ionic and angular. I’m looking for nearby places using nearbySearch() that returns a resolve of results, of this results caught the place_id of the place and put in the function…