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
answer224
viewsHow do I make an angular application work only on a specific browser?
I would like to make my angular application work on a particular browser, and block any other version. Ex: Work only on Google Chrome 75. And if the user tries to access in a Firefox, Edge, or…
-
0
votes2
answers4995
viewsHow to resolve is not defined at Htmlbuttonelement.onclick
I have a button in a table that has the following code <td> <button class="btn btn-primary float-right" onclick="addCart()"><i class="fa fa-shopping-cart"></i> Adicionar ao…
-
0
votes1
answer86
viewsAngular + media stream
I have a component where I request permission for the user to use the webcam, the purpose of it is to do facial recognition. It’s working, but when I navigate to other components, the browser tab…
-
0
votes2
answers312
viewsMetodo Post Angular
Hello, I am developing an application using as Backend ASP.NET C#, and with front Angular5! I’m doing a post method for the first time and it’s not flowing well! In Backend I have a method as…
-
0
votes1
answer28
viewsAngular and Spring system for type approval
We have a VM on Azure. I managed the homologation build and put it on the server. Generated the files and index.html like this <!doctype html> <html lang="en"> <head> <meta…
-
0
votes2
answers983
viewsHow to return all elements of the Angular array
why is returning only the last position of the array instead of all ??? showChildModal3(Candidato: Candidato) { this.CandidatoService.getCandidatoById(+Candidato.id) .subscribe( data => { for…
-
0
votes1
answer901
viewsBoolean in the Angular
I have a class in Angular user call that gets 2 Boolean fields export class UsuariosModel { UsuarioId: Number; Nome: string; Sobrenome: string; Email: string; Senha: string; Corretor: boolean;…
-
0
votes1
answer346
viewsHow to login validation in angular4?
Dear friends, good afternoon, I would like to know how to show an invalid password or user message in angular 4.` Login Hello! Log in with your email <div class="row"> <div…
-
0
votes1
answer220
viewsPrimeng table does not appear
Greetings guys. I’m trying to use the Table of Primeng, but I’m struggling. I followed the steps in Get Started and the Table does not appear in the browser. And to make matters worse, there is no…
-
0
votes1
answer3133
viewsTypescript Error Property 'name' does not exist on type 'Object'
I am trying to make an appointment in the backend and with the result save in a localstorage. I am using Angular5. valor:any; validar(){ this.storage.get('refresh').then(val => {…
-
0
votes1
answer37
viewsProviding scss and ttf files in angular library
I am creating an Angular library with NPM and would like to have a css folder and custom fonts available in the final build, so it is possible for me to just import the scss files into the…
-
0
votes0
answers277
viewsInject service in the page’s press.module
I’m working with Ionic 3 and I’m using some of your native services, like logging in with facebook. Everything works perfectly, my problem is in something I’m trying to do to organize my code more.…
-
0
votes1
answer144
viewsDoes Angular use the MVVM?
I have some doubts about the design of framework Angular The framework actually uses MVVM in full or only a few principles? Component is entirely a Viewmodel?…
-
0
votes1
answer130
viewsAngular - ng2-Charts - Heading on x-axis
I am using (ng2-Charts) to implement a bar chart, and at the moment, I am trying to include a title with the percentage on the x-axis (as in the image below) and I am encountering difficulties.…
-
0
votes1
answer80
viewsCheck if number with isNaN does not work
I wonder if my URL has number (ID parameter). get this: rota = "/pessoa/editar/5"; after the substring rota = "/pessoa/editar"; validarRota(rota) { if(!isNaN(rota)) { rota = rota.substring(0,…
-
0
votes1
answer345
viewshow to manipulate an object inside an array in typescript
I use the last version of the angular, and I’m having a hard time passing a value to the field, follow details below I am pulling data from an api and sending in list to a select <option…
-
0
votes1
answer38
viewsUse of scripts and external bootstrap
Good evening guys I’m trying to implement a script and external css in my angular project, and I saw that I just had to throw it into the angular folder and use a link tag like this one below to…
-
0
votes1
answer904
viewsHow to change the color of a mat-button in Angular?
How does it become possible to change the color of an angular mat-button? I’m using Theme Indigo-pink, and it has a pink Accent, I don’t think it matches, and I’d like to change to another color,…
-
0
votes1
answer76
viewsFilling in input automatically with JSON
I am doing a zip code query and automatically filling in the inputs with the result of the request, but when I submit the form the requested data is sent as null in JSON onsubmit. Can you help me?…
-
0
votes1
answer171
viewsRegex angular ngModel
Hello, I have a problem with regex and angular. I have an input that uses ngModel, and I need to use a regex on it to prevent the user from initially entering a number, that is, the first input must…
-
0
votes0
answers57
viewsHow to use jQuery inside component - Angular
So I’m having trouble executing jQuery (initialize the tabs component of materialize) within a specific component. For now the code is like this: home-logged.component.html <div class="row">…
-
0
votes1
answer642
viewsHow do you leave objects side-by-side coming from *ngFor?
I have this situation: <div class="row"> <div class="col-lg-12"> <!-- 1 Primeiro cartão, 1° objeto --> <div class="card borda-card" *ngFor="let evento of eventos"> <a…
html twitter-bootstrap angular twitter angular-cliasked 6 years, 6 months ago Rafael Souza Calearo 191 -
0
votes1
answer632
viewsAngular 5 does not redirect to another component
I am trying to get the user to be redirected to another component by clicking on a button, but they are merging. My main component is Home, and I’m trying to redirect to the Game component. Look:…
angularasked 6 years, 6 months ago Daniel Swater 1,251 -
0
votes1
answer254
viewsHow to save additional data to the Firebase user account with Ionic app?
Hello I am using firebase authentication in my Ionic app, my question is : how can I save more data besides email and password in the user account? I want to save beyond the high email like: First…
-
0
votes1
answer50
viewsDoubts with post method at the angular
Hello, I’m trying to make a POST method that returns me an object 'User'. In my Backend I have the following code: //Add um Usuarios public Usuarios Post([FromBody]Usuarios usuario) { return…
-
0
votes2
answers234
viewsHow to join two arrays at the angle
I have a service me returning an array containing photos and when I "scroll" page it adds +1 on the photo page and I wanted to show the new photos below the current photos getPhotos(page: number) {…
angularasked 5 years, 2 months ago Giovanni Dias 712 -
0
votes2
answers191
viewsTable with dynamic columns
I am facing problems in generating an HTML table through a return in Json, the problem is in generating the amount of columns dynamically as AIP returns. The return is presented in the following…
angularasked 5 years, 2 months ago Andre Astafieff 27 -
0
votes1
answer509
viewsHow to Get Header Information in Post Request, Ionic 3
Hello, I need to get the Token that returns in Header after I run a POST, I would like to know a way to achieve this, I am using Ionic 3 with Angular. What is the best way to get the Authorization…
-
0
votes1
answer600
viewsChild component of other component does not load
I configured the routes, but the component does not render when the application is initialized. I need the component posts render inside the component blog, and the blog already loads correctly.…
-
0
votes1
answer121
viewsActivatedroute does not call the service before updating angular page 5
Hello, I used the routerLink that passes an id to the url, which looks for this id and step as parameter for the function that searches the data of the api, but when I click on my link it redirects…
-
0
votes1
answer114
viewsError in catchError tutorial Tour of Heroes of Angular 6
I’m new to the angle, and I’m following the tutorial Tour of Heroes of Angular 6 and having trouble with the catchError of an Observable. This is the error that VSCODE sends me: Type…
angularasked 6 years, 6 months ago Flávio de Assis 1 -
0
votes0
answers40
viewsmodify angular chart
friends I am trying to solve a problem which I have been looking for solution in some forums and none helps me specifically. I have a chart using piechart that renders a pie chart. However it uses…
-
0
votes0
answers162
viewsCollect Date and Time in a Reactive Form
I am developing a reactive form at Angular 5 and would like to store the Date/Time in a Datetime. In this case, the user should somehow inform the date and time of a specific event. However, I…
angularasked 6 years, 6 months ago Murilo Góes de Almeida 111 -
0
votes1
answer175
viewsHow to transform a string into a float through the angular template?
I’m using the component agm-map and I need to move on to the properties [latitude] and [longitude] coordinates. I am receiving these values in string, but need to convert into numeric. I tried…
-
0
votes1
answer263
viewsRedirect to page after API consumption
I have two Components in my application made with Angular 5+. A Component is a form, where I fill in parameters that are passed in a GET to my REST API. This form (component1) retrieves the JSON…
-
0
votes1
answer121
viewsInput value property does not work with Angular
I’m having some problems with the property value of a text field: <div class="container"> <form class="row"> <div class="col s4 input-field"> <input id="campo" type="text"…
-
0
votes1
answer145
viewsAngular asynchronous ng-repeat
I am using Angular 1.6.10 to show the data of an API, as the data search is asynchronous, I believe ng-repeat runs before the data is loaded: angular .module('appDataPOA', [])…
-
0
votes1
answer60
viewsCalling filter method Status
I have this method, when choosing a country, search the states. filtrarEstado(pais : Pais) : void{ this.loading = true; this.estadoService.getEstadosPorPais(pais).subscribe( (data :any) => {…
-
0
votes1
answer67
viewspassing webapi value to select html in angular 2
i have a typescript function that receives a json value from my webapi, and I need to pass this result to a select in html... Service: teste: teste[]; public getNomes(type: string, formGroup:…
-
0
votes1
answer72
viewsAngular doubt - ngrx
Hello I was reading about Ngrx and I came across it: <div>Current Count: {{ count$ | async }}</div> What does this "|" mean?
-
0
votes1
answer94
viewsHow to take value of element attribute with Angular IONIC4
How can I take the value of the data set attribute or change it in the link with the following structure: <a href='#' data-set='22'>Texto</a> I know that in jquery I can use:…
-
0
votes1
answer218
viewsWhy do we use "void" typing in Angular?
Why in Angular we use typing : void? Example: ngAfterViewInit(): void {}
-
0
votes1
answer511
viewsIn typescript can we type a variable with an object?
In typescript can we type a variable with an object? Example: funcaoExemplo(obj: { [key: string]: any }) {}
-
0
votes2
answers3335
viewsHow to disable the button in Angular?
Take a good look at the form <form #registerForm="ngForm" (ngSubmit)="onSubmit(registerForm)" class="col-lg-10" > <p> <label >Nome</label> <input type="text" name="name"…
-
0
votes2
answers678
viewsReturn data from an HTTP request at Angular
I need to make a simple request that will return only one JSON. I am trying to do this using the following function: .ts: getModel(modelId: number) { let modelName: any = "none";…
-
0
votes1
answer1028
viewsClick Outside Angular 6
I upgraded my Angular from 4 to 6, and consequently had a problem with my Outside click directive, it stopped working on all components. my directive: import { Directive, Output, EventEmitter,…
-
0
votes0
answers99
viewsShow table only if you have widgets at angular 2+
I have the following table: <table class="table table-bordered"> <thead> <tr> <td>Nome</td> <td>Email</td> <td>Data</td>…
-
0
votes2
answers46
viewsdelete jquery
How do I get the same effect in typescript/angular without using jquery. $('#divPublicar').mouseenter(function() { this.isOnDiv = true; }); $('#divPublicar').mouseleave(function() { this.isOnDiv =…
-
0
votes1
answer59
viewsFixing error starting new Ionic project
I’m trying to create a new IONIC app but whenever I choose Angular it returns me this error…
-
0
votes1
answer558
viewsHow does the "next" function work in Angular?
Follow the example: @Output() exemplo = new Subject<{ valor1: number, valor2: number }>(); this.exemplo.next({ valor1: _valor1, valor2: this.valor }); What’s going on here? An object is passed…