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
votes0
answers50
viewsProblem with Angular Headers import
I was with my project working until one fine day a fragment of my project solved gives import problem and generated this error while compiling: While doing a brief search on the internet I found…
-
0
votes0
answers129
viewsAngular 2x application configuration error
I did some ***** in the advice that Visual Studio Code gives in some configuration file and what was working perfectly, now when running the ng serve gives the error to follow: ERROR in…
-
0
votes1
answer4038
viewsCannot read Property 'id' of Undefined
I am getting an error when entering the bug-Details route, before even clicking the routerlink to try to access Edit-bug, which is my intention. The mistake is: ERROR Typeerror: Cannot read Property…
angularasked 5 years, 11 months ago Pedro Costa 35 -
0
votes1
answer139
viewsPrevious request to then execute another request at the angle
After the user is logged in to my application, all the requests he performs must first hit an API that will validate if the plan is in agreement. Is there any way to standardize the requests so that…
-
0
votes1
answer53
viewscanLoad does not work with Behaviorsubject
The service AuthenticationManager has the following code: private loggedIn: BehaviorSubject<boolean>; constructor( private http: ApplicationHttpClient, private router: Router, private a:…
angularasked 6 years, 9 months ago Filipe Moraes 8,737 -
0
votes2
answers744
viewsHow to format select option with bootstrap in an Angular?
Note the image below: You can see that the field ZIP CODE is quite different from the countryside State and City, I am aware that the field settings ZIP CODE is due to the Angular Primeng features…
-
0
votes1
answer125
viewsHow to hide the bootstrap modal via typescript
Looking at the bootstrap documentation I saw that it has a specific method to hide the modal via jquery: .modal('hide') $('#myModal').modal('hide') The problem is that I use angular, so I need a way…
-
0
votes1
answer162
viewsAngular 7: Biding an object that will receive a json from an HTTP GET
Let’s say I have the typed object: x: Endereco public interface Endereco { rua: string; numero: number; } And I have an http GET that will feed this variable x. The problem is that in the request I…
-
0
votes0
answers128
viewsProblem in saving states according to the city in Angular 4
When selecting the state it is perfectly loading the cities according to state the problem is at the time of saving it exchanges the information, need help to fix the algorithm, I believe it is…
-
0
votes1
answer323
viewsValidate Typescript file size
I have to validate the file size, which cannot exceed 1024. How do I do this in Typescript ? verificar(){ debugger; let _this = this; document.getElementById("openModalVerificar").click(); let…
-
0
votes2
answers117
viewsReply POST comes empty
I am making a POST request in my API by my angular project and only empty the result, and by Postman comes the correct data. service ts. : teste(user) { return this.http.post(`api/home`, user) }…
-
0
votes1
answer51
viewsI cannot upload the . json file
I’m trying to send a file .json created within Angular for a server, and gives this error as a response: "A Jsonobject text must Begin with '{' at 1 [Character 2 line 1]", object_or_array: "Object",…
-
0
votes0
answers120
viewsError Property 'Collection' does not exist on type 'Profile'
There is the following variable declared in the script: private profile: Profile; See that it is a variable of type Profile. When trying to assign a value to the variable, returns the following…
-
0
votes1
answer51
viewsIonic - Problems Pulling Data from PHP Database
Hello, I would like to know how I can pull the database data already with the tags in html. I collect the data and they come normally, but my table is composed by title, content and in this content…
-
0
votes1
answer636
viewsChange width of angular mat tooltip
I need to increase the width of the angular mat tooltip Angular Material Tooltip I tried to: ::ng-deep .mat-tooltip { padding: 15px; font-size: 12px; } The padding and font-size has been applied,…
-
0
votes1
answer917
viewsAngular multiple ngif Else passing parameter in template
Is it possible to make two ngIf in the angular.html? follows an example if(1=2){ }else{ if(){ } } need to do two checks. Check teacher constraint if false check classroom availability. if an example…
-
0
votes0
answers25
viewsHow to eliminate these excessive "callbacks" when using Names and subscribes in the TS?
I am working with Ionic 2 and I need to make a request in Storage to redeem a previously saved token, after making this request I need to send this token to the API to be validated. The problem is…
-
0
votes1
answer221
viewsHow to work with Session at the / jquery angle
I’m developing a website where I need to store in the section some data as surveys performed. We chose to develop the system’s from in angular/jquery. In php I saw that there are Sesssions. These…
-
0
votes0
answers580
viewsERROR Typeerror: Cannot read Property 'id' of Undefined using mat-table
It is giving this error when I add a new item, for my research I need to use an async, but the examples I found none use mat-table of angular material. I couldn’t apply it. How is an async done in…
-
0
votes2
answers155
views"Click" does not work at the angle
Follow the codes. Despite hiding the menu, it does not open again with the "click" function in Nav-Burger menu.: section class="hero outer is-primary is-fullheight animated slideInLeft"…
angularasked 6 years, 9 months ago Lucas Castro 25 -
0
votes1
answer182
viewsdoubts with jsPdf - column definition
I have the following json { "MedPaciente": [ { "ProdutoModel": { "LaboratorioModel": { "id_laboratorio": 7951, "nome": "BOEHRINGER INGELHEIM", "data_cad": "28/12/2017", "situacao": 1 },…
-
0
votes0
answers72
viewsHow do I make a POST + Redirect with Angular?
Hello, I need to post to a page and redirect along with the post to when load the page display the posted data. The problem is that when I do the post it already brings me the RESPONSE with the…
-
0
votes1
answer1003
views404 error while updating page - Angular 4
Guys is the following, I started a new project in Angular 4 and it works perfectly on the localhost. I went up to the server (Tomcat) and I was testing when searching the url…
-
0
votes0
answers101
viewsUse @keyframes of css with angular 5.2.6
I’m migrating a project and it had some animations. The same goes for animations in css with @keyframes, but putting directly into the component’s css and viewing the generated page from the angular…
-
0
votes1
answer119
viewsAngular - npm: how to give up the webpack?
I am trying problems with the webpack, I would like to know how to remove it, tried the ways below which are indicated as examples on the NPM website, but without success.…
-
0
votes1
answer816
viewsHow to reference another collection in Firebase’s Cloud Firestore
I’m starting to learn Firebase using Cloud Firestore. And I have a question: How can I relate collections? I see the collections as tables, so I would have a collection of Products, and a Category.…
-
0
votes0
answers321
viewsHow to use Ngrok correctly with Angular-cli?
Is there any right way to use Ngrok with Angular? I’m trying to tunnel to my application that runs on localhost, creating a random web (URL) to make available on the internet, so I can perform the…
-
0
votes0
answers51
viewsjQuery with Angular and React
I started studying Angular and React recently and I have a question for those who are experienced with these technologies. Using them together with jQuery is inappropriate?
-
0
votes1
answer37
viewsngx-filter-pipe is returning the wrong index of my *ngFor when element is filtered
I have a pipe that performs a filter on my *ngFor: <input [(ngModel)]="anunciosFiltro.name" type="text" name="filtra" id="filtra"> <tr *ngFor="let anuncio of sortedData | filterBy:…
-
0
votes1
answer168
viewsChange only one checkbox
How do I change only the checkbox I’m clicking? checked:boolean=false; ck() { if(this.checked === false){ this.checked=true; }else{ this.checked=false; } <ion-item> <ion-label class="title"…
-
0
votes0
answers353
viewsDisplay loading image when changing img src attribute using angular 2+
I’m starting to use 2+ angler and I’m having a little problem In an application I am developing I am changing the image atirbuto src for a variable that controls the image url q should be displayed…
-
0
votes2
answers2185
viewshow do I change the color of an html element based on its value using angular 1.6.4
I need to change the color of the student status on the page, and wanted to do this using the angled, can someone help me how I do this using the value of the element? HTML: <tbody> <tr…
-
0
votes1
answer372
viewsAngular login visible in the request header
Everybody, Good afternoon. I need some help. My backend was written in nodejs and this one on IIS. My frontend is in angular and it’s still on my machine being debugged. My login page is working as…
-
0
votes0
answers272
viewsRelationship local tablesStorage Ionic 3
I want to make a relationship between two "tables" in Ionic 3 with Localsotrage. I created a preview with the first that would be the movement register: import { Injectable } from '@angular/core';…
-
0
votes1
answer451
viewsView Angular + Json Ionic 3
I’m trying to display the json of a search in my app,. here is in the app displaying on the console, but wanted to display in the app my html code <ion-header> <ion-navbar> <button…
-
0
votes1
answer252
viewsAngular: insert date in input only
In the system there is a field to insert a date. I want to block the input to insert only the dd/mm/yyyy values <mat-form-field class="input-full-width"> <mat-label>Data…
-
0
votes1
answer239
viewsProblem retrieving JWT in Angular
In the server-side I have a service using Spring Security and JWT for authentication and authorization, in the client-side I have a SPA in Angular. The problem occurs when I try to authenticate as I…
-
0
votes1
answer262
viewsFormgroup Required conditioning
I have a component address to which has a form, this sera requirido in some places and others not so I intend to use a variable @input required = false; to do this. I start formGroup on onInit so:…
angularasked 6 years, 8 months ago William Cézar 1,268 -
0
votes0
answers586
viewsModule build failed (from . /node_modules/Sass-Loader/lib/Loader.js after upgrading Angular version
After upgrading the angular version from 6.1 to 7, when I went to give ng serve returns me the following error: "ERROR in . /src/app/Components/anuncios.component.scss Module build failed (from .…
-
0
votes0
answers61
viewsRaspberry PI does not load page
We developed a page using Laravel to load on Raspberry Pi Load normally, only there was a need to change technology. We did not change to angular/cli The angled page does not connect. Gives Gah!…
-
0
votes1
answer40
viewsCheck the input and then click the button
As I do only if the input is marked is that one can click on "ok,". <div class="container"> <button type="button" class="btn btn-info" (click)="openModal(template)">Create template…
-
0
votes1
answer20
viewsType "Contasml" is Missing from type Contasml[]: length, pop, Concat and 26 more
I’m having the following error in my visual studio code editor: Type "Contasml" is Missing from type Contasml[]: length, pop, Concat and 26 more My model: export class ContasML{ id: number email:…
-
0
votes1
answer141
viewsHow to create an angular project without Initial commit?
As there is no example in the documentation of angular.io, I can’t start a project without it running an Initial commit, according to options in the documentation, I tried several ways and nothing,…
-
0
votes1
answer239
viewsBackground color angular
How do, in angular 7, a background-color of the body different from the page I’m displaying? Example: Login page: green background Home: blue background
-
0
votes1
answer26
viewsReturning Array[] with Obsevable
I’m developing an Angular 2 application and in my service I’m returning one Observable<Pessoa[]> but when returning http with my get it runs the following error. Type…
-
0
votes1
answer59
viewsClick on an item and send to the specific page
I’m new to Ionic and I wanted a tip from you. There was a fixed list in my app with the services that it has after creating this list in the main view I would like to click on a given item to go to…
-
0
votes0
answers101
viewsReturn only one object at a time from http get JSON
As I do instead of came the array of all questions, I came one question at a time in my form: Given my service: import { Injectable } from '@angular/core'; import { Pergunta } from…
angularasked 6 years, 8 months ago ttlelis_12 41 -
0
votes1
answer315
viewsAngular: error trying to manipulate input value - Property 'value' does not exist on type 'Element
I’m having trouble trying to get the value of an input to clear it, the code is in a script . ts (used in Angular 7), code below: document.querySelector('.input').value = ""; Error while compiling…
-
0
votes1
answer233
viewsAngular 7 waiting service reply to continue
Good afternoon, guys, I have two methods, how do I wait for a method that is calling an external service to respond to continue the execution of the method that called this method? Example:…
-
0
votes1
answer582
viewsAngular Typescript input change Event
I have an input field that starts with a number('.2-2'). This input is updated when a select field modifies its value. When this field is modified, the value of the numver input does not obey the…