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
answer348
viewsDynamically create HTML Elements at Angular 2
Good Morning! I’m new to Angular 2 and I’m putting together a blog for personal enhancement. This "p" tag gets my text <!-- Post Content --> <p id="post-aux">{{post.Texto}}</p> I…
-
0
votes1
answer121
viewsSlow return subscribe - Angular4
I started the studies with angular4. I made a simple request that returns me one json. So far so good... When making the comparison in my component with the data returned from my service, it also…
-
0
votes2
answers85
viewsError in ngModel call
I’m making a mistake of ' Cannot read Property 'razao_social' of Undefined' when I call an ngModel in my html. I created an interface like this: export interface IEmpresas { nome_fantasia : string;…
-
0
votes0
answers113
viewsError 404 angular page
design in angular6 error 404 When giving a refresh on the page he can’t find the files. error : failed to load Resource: the server responded with a status of 404 scripts.d0a977ac216f5f3f1a16.js…
-
0
votes1
answer40
viewsManipulate data. js with angular-cli
Hello! I am now starting to mess with angular and I have a server.js file that makes a call in the database and back the data. I need an interface to display this data. My question is: how do I…
-
0
votes1
answer4510
viewsShare data between Angular 6
I have a Navbar Component that sits at the root of the project, and I have on the side of that another that is a part. Ex: navbar componenet1[ component2 component3 component4[ component5 component6…
-
0
votes3
answers324
viewsError with map operator
I’m starting now with Angular 6. When I tried to create a service to consume data from an api, the following error appeared: import { Injectable } from '@angular/core'; import { Http } from…
-
0
votes1
answer64
viewsProblem installing boostrap
I am trying to install Bootstrap using Nodejs from the terminal and the following error is displayed: npm ERR! code ETARGET npm ERR! notarget No matching version found for jquery@next npm ERR!…
-
0
votes1
answer53
viewsError using Angular Delete method
I have an application in Angular4 + Spring boot with the following error when I try to execute the method delete Cross-Origin Request Blocked The same rule of origin prevents me from reading the…
-
0
votes1
answer1350
viewsAngular 6 Special characters (Accent and cedilla)
Good night, Does anyone know how to solve the problem with Angular 6 accentuation? import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html',…
-
0
votes1
answer518
viewsError running "npm run Prod" command in Git Bash to build an Ionic 2 project
I have a publication ready project, which was created with Ionic 2 using Google’s Firebase API, but when I try to build the project for production, with the following command in Git Bash: "npm run…
-
0
votes1
answer527
views"WARNING in Duplicated path in loadChildren Detected During a rebuild." duplicated paths
What could be wrong to lead to warn? WARNING in Duplicated path in loadChildren detected during a rebuild. We will take the latest version detected and override it to save rebuild time. You should…
-
0
votes2
answers1155
viewsHow to declare IF in Ionic
I am with the following code, it checks the value of _meditaTotal if it is greater than 70 the icone variable gets 'green', if it is lower q 70 and greater than 50 icone variable gets 'yellow' and…
-
0
votes0
answers159
viewsAngular 4 + Laravel 5 Error: The Resource you are Looking for has been Removed, had its name changed, or is temporarily unavailable
I have a project in which I am using Angular 4 and Laravel 5. Locally it is working locally but when I go up in production (I’m using Azure as a server) it doesn’t work properly. I have a…
-
0
votes2
answers152
viewsWhat is the reason for the error since Jquery is being imported
I’m using Materialize together with Angular, but the dropdown menu is not working. With the following error: Uncaught Typeerror: $(...). dropdown is not a Function functions.js:6 The file funcoes.js…
-
0
votes1
answer98
viewsHow to pass items from an [Object Object] to the parent json
Hello the server is returning me the following json this.itens = { id: '', data: '', hora: '', cliente:{ nome: '', cpf: '' } } i need the customer data not to stay in a second json but in an ex…
-
0
votes1
answer93
viewsGet object that was created on the server via Angular
Good morning Personal, I am a beginner in Angular 4 (using Typescript) and I have a basic question, but I did not find an answer here. I have a typescript method that calls a method from a Webapi.…
-
0
votes2
answers123
viewsThe Observable is not accepting Catch
Note the figure below; Why is the Observable not accepting the catch?…
-
0
votes2
answers295
viewsHow to create an array with results obtained through an observable<any[]> TYPESCRIPT
Well, I get a key array,: addprd(a:string){ this.prdarray.push(a); } After adding the keys I want to use in the search I use the following medoto: queryProd(as:string){ const prdN…
-
0
votes0
answers373
viewsSlowness in Node ng serves when spending a certain time
I start my server with ngserve, with the passage of time the computer will be slow until it is unusable, I have to close the Node and open again, then goes for a while. Has anyone been through it?…
-
0
votes3
answers139
viewsAngular2 Tynymce Text editor
Can anyone tell if there is any property that at the time of clicking on the text editor I can issue some event. With (ngModelChange) I can type and do some action, then I need that at the moment of…
-
0
votes0
answers71
viewsThe 'ng' program is not currently installed. You can install it by typing: sudo apt-get install ng-common
I’m learning to work with Angular and I’m in trouble here. I am trying to create a new folder using the command ng new "nome da pasta", but the message is coming The 'ng' program is not currently…
-
0
votes0
answers25
viewsCreated object id does not appear to be available in form
I’m using Angular with Typescript and Asp.Net MVC. I create an object and the MVC controller returns the object to me. I’m taking this object in Typescript and automatically the object ID goes to…
-
0
votes0
answers83
viewsAnnular Method of Angular Material Design
I have a menu of the angular material design that when it opens it focuses on the first menu item, I would like to remove this method. I saw on the web site of angular material that this method has…
-
0
votes3
answers831
viewsSHA-1 with Typescript
I’m doing a project and I need to encrypt a password, I wanted to use the SHA-1, only I couldn’t find anywhere to use with Typescript, the TS supports the SHA-1?
-
0
votes1
answer263
viewsAngular / Javascript - Re-organizing positions in the Array
let meuArray = [ {codigo: 1, nome: Jose, idade: 33} ,{codigo: 2, nome: Jose, idade: 32} ,{codigo: 3, nome: Maria, idade: 31} ,{codigo: 4, nome: Joao, idade: 30} ,{codigo: 5, nome: Aroldo, idade: 29}…
-
0
votes1
answer157
viewsBeginner in Angular Problems with observable
I’m new to the world of angular development and I’m having a simple problem but I can’t solve it. I started the project using angular cli 1.5.2, where this using angular 5.0.0 I’m trying to perform…
angularasked 7 years ago Caio Michel dos Santos 75 -
0
votes1
answer359
viewsAppear list only when Searchbar is filled - Ionic 3
Hi, I’m using this Separchbar code and it’s working. But I want the list of items to appear ONLY when you have something written in the Archbar. Basically I DO NOT want a "list of all items" to…
-
0
votes1
answer160
viewsWhere in string list does not work Cloud Firestore
I am unable to return the documents from a collection where this document has a field called tags that is a list of strings with the tag ID. Below follows the code of what I’m trying to do: document…
-
0
votes1
answer1813
viewsHow to import my CSS styles and my JS scripts to an Ângular project?
I have an Angular 2 project, and would like to import the scripts and style sheets to my project. When I go to encapsulate my project in sessions, the ângular does not properly interpret the files…
-
0
votes1
answer562
viewsSwap ngb-tabset tabs by clicking on button
I have two tabs and I need to change tabs by clicking on a button. I usually work with routes, but in this case I need to change tab only, on the same web page. I have the following Tabs, TAB 1 and…
-
0
votes1
answer202
viewsHow to send an image per post at the angle
I wonder how I can be sending an image to an api at Angular 6 through the post method. First I must encode this image in base 64 and then I send all that coding as a key value????
-
0
votes1
answer143
viewsUse toLowerCase() on a string array - Angularjs 5, Typescript
I’m trying to transform an array with strings inside in lowercase using toLowerCase, but it doesn’t seem to work with an array, but only with a string... How do I fix it? items: Array<{tag:…
-
0
votes2
answers214
viewsCustom header angular 4, error does not authenticate
Good morning, I need to connect in a service that requires authentication passing some headers, more of all the ways I tried, does not send my custom Header, follows below the code: public…
angularasked 6 years, 11 months ago user3232881 31 -
0
votes1
answer535
viewsAngular 6 - Comparison of values
In the database I save an integer number to represent the user type. The integer number can receive 1, 2, 3, 4, 5, 6 or 7. When I show the type of user on the screen, I would have to do several…
-
0
votes0
answers37
viewsdoubts about ng-select’s "loading" Property
Guys, I need some help! Could someone explain to me what it is for and how the ng-select Property "loading" works?
-
0
votes1
answer464
viewsWhen loading list, mat-select should be already filled
This is my html <div class="container"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered"> <caption> Lista de Aplicabilidades…
-
0
votes2
answers295
viewsSum json object property
I have a json object and need to multiply the value vlr_produto with the function add() data={ id: 6, nome_produto: "Produto", vlr_produto: 16.98, qtd: 0 } add(data) { var mult = data.qtd++; mult *…
-
0
votes0
answers28
viewsHow to make a setTimout but only when there is no action on the screen?
I’m looking for an idea, as I do a Settimout only when the user leaves the page. Example, I’m with 2 screens. One is the Reset screen and another is the home. when user enters the system he goes…
-
0
votes1
answer761
viewsProblems with Lazy Load Angular 5
Error adding Lazy loading Any help is welcome because I’m new at angular. I need to set up some file for this to work? app.modulets. import { BrowserModule } from '@angular/platform-browser'; import…
-
0
votes0
answers63
views*ngFor with ngModel and value
I have the following repeat structure: TS resposta: string[]; HTML: <ion-card *ngFor="let pergunta of perguntas; let i = index"> I have an ngModel that I need to print its value at its value:…
-
0
votes3
answers233
viewsBadrequest 400 Httpparams Angular 4.3
I’m using the new library of angular to make requisitions, the HttpClient. Along with the 4+ angle I am using here in the company for the backend, Java with Spring (boot). The problem is occurring…
-
0
votes1
answer6059
viewsAngular 2: Please add a @Ngmodule Annotation
I’m having an error asking to add the @Ngmodule annotation. But I believe this ok. follows error: Uncaught Error: Unexpected value 'Http' imported by the module 'AppModule'. Please add a @NgModule…
-
0
votes1
answer266
viewsModal in separate Component
Hello, I’m new in Bootstrap with angular, and would like to know if there is a way to create a modal in one Component and call it in another, for example: Component-parent Component-modal then the…
-
0
votes1
answer454
viewsI can’t test my Ionic app: Cors error
I’m having a lot of problems testing my Ionic app. As it has Httpclient requests, I am having problems with Cors. I thought about generating the production build and testing on mobile, so I tested:…
-
0
votes1
answer379
viewsMobile Numeric Angular Keyboard
Hello, I’m developing an angular form that will be used both on desktop and mobile. However, I would like in mobile the numeric fields as CPF, Phone, Zip code, present only the numeric keyboard and…
-
0
votes1
answer37
viewsDisplay all text on button
Hello! It is possible to display all button text on it? Automatically adding these ellipsis, but would like to display all the text. <ion-segment-button value="Bareserestaurantes"…
-
0
votes1
answer335
viewsGroup objects by a certain angular key
I have three objects: 0{ conta: "teste", data: "01/01/2018" }, 1{ conta: "teste", data: "01/03/2018" } 2{ conta: "teste2", data: "02/02/2019" } I need to group the objects that have the account with…
-
0
votes2
answers43
viewsgetVersionNumber() returns me Undefined on Ionic
I need to check the application version to make validations, the problem is that the promisse getVersionNumber() is returning me Undefined. I tried something like: ngOnInit(): void { let versaoApp;…
-
0
votes2
answers770
viewsCannot read Property 'setAttribute' of null com ngFor
I have an ngFor that adds several strings, and this data comes from an api <p class="teste" *ngFor="let element of objeto_retorno" >Filial {{ element.FILIAL }} = {{ element.TOTAL }} </p>…