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
answer205
viewsHow to recover data from Angular Route component?
I saw in the documentation Angular that it is possible to recover data stored in the property date (receiving an object) from a route. I have, in this case an application with the following routes:…
-
1
votes0
answers73
viewsI cannot do Array (in JSON) in Typescript
Below is the Array I need: [ { "id":1, "nome":"LESPAUL", "validade":1525568400000, "dataGerada":1525914000000, "status":true, "itens":[ { "cliente":{ "id":1, "login":"gabriel", "senha":"123",…
-
1
votes0
answers30
viewsAngualar JS Translate and dynamic elements?
I’m using Angularjs to create a site Multi-lingual, but I’m having problems with the elements created dynamically. var app = angular.module('myApp', ['pascalprecht.translate']);…
-
1
votes1
answer74
viewsUpgrading from IONIC 1 to 3: How to log in to JSON?
I’m migrating from Ionic 1 to 3, and how many changes. I created my login API, with token: Here I put my authorization code to access the API. And here the result in JSON: ion-content padding…
-
1
votes1
answer31
viewsClick function with a model variable
Hey, guys, I got a model receiving the value of a web api perfectly, but the problem is that I have a function that needs to catch the value of model and put in the click function as parameter and…
-
1
votes1
answer653
viewsDeploy at angular with IIS server
Hello, I published an angular application on an IIS server, and when trying to access the URL defined on the server I get the following error: Error shown: "Cannot match any Routes. URL Segment:…
-
1
votes1
answer838
viewsHow do I publish an Angular CLI project to my server?
I have a project in Angularjs running localhost perfectly. I’m trying to host on the server "HOSTGATOR" and I’m not succeeding. I’m generating the build with the Angular CLI and Hosting the Dir…
-
1
votes1
answer780
viewsHow to list files in a directory and use in an Angular2 + Webpack project
Hello, I am creating a project in Angular2 + Webpack and in this project I use as a design library @angular/material. So I can create my own icons using SVG, I’m extending the component MatIcon as…
-
1
votes3
answers223
viewsClick and block inputs function
Good morning!! I come again to ask questions... I need to know how I do so that when I click a button, it will be able to block(disabled) all inputs or selects that I want, basically, maybe *ngIf…
-
1
votes1
answer66
viewsCreation of Angular Components
I am starting my experiments with Angular (9) using Vscode as IDE. However I am with a doubt (which may be basic), but I have not seen anywhere the explanation for such... When trying to create a…
angularasked 4 years, 7 months ago Marcelo Almeida 71 -
1
votes1
answer35
viewsWhat are the observables?
I would like you to explain to me what are the observables in the Angular. What are your differences for a?
-
1
votes1
answer52
viewsName does not get fixed in variable
Good morning! I have a survey that puts the names of some products in a variable, but if I search another product, it subscribes the new product in the old, so: Search for 1 product: Search for 2°…
angularasked 6 years, 4 months ago Bruno Miqueas 127 -
1
votes1
answer172
viewsCollection "@angular/material" cannot be resolved
I’m starting with angular and I ended up encountering very strange error while trying to execute the command: ng generate @angular/material:material-nav --name nav-menu he introduces me to the…
-
1
votes0
answers421
viewsUpdate Angular cli within project
Good afternoon, you guys. I’m trying to update Angular cli on a project. 1. I updated Angular globally "npm install -g @angular/cli" updated to Angular 6.0.8. 2. I tried to update the angular of the…
angularasked 6 years, 4 months ago Diogo Mendes 11 -
1
votes1
answer108
views'app-welcome' is not a known element Angular 2+
My components are organized as follows: app module. src/ App.Module.ts: Importa os módulos dos componentes <br> App.Routing.module.ts: Rotas raiz do sistema Bemvindo.module src/app/components/…
-
1
votes0
answers190
views"Cannot set Property 'classname' of null" error function Angular 2+
In my template I have a button that calls the login function: <button type="submit" name="entrar" (click)="fazerLogin()" routerLink="/home" class="login"…
-
1
votes2
answers1133
viewsChange Angular 9 material design color scheme
I added the material design package, ng add @angular/material, to my project and selected Deep Purple/Amber. I want to change the color palette of my project, but I couldn’t find how to generate CSS…
-
1
votes1
answer2161
viewsType an array of type any[] at angular 6
I need to type an object, not to receive any[] in agular 6. Well, no get, I get this from the API: { "error": false, "itens": [ [ { "operatorId": "819ee9cc-70b6-44dc-b9e8-afff8705142c", "name":…
-
1
votes1
answer691
viewsRescue data from another angular component
I have a component called login that when you login fills the user object data, I need to take the "job" field of this object and receive in another component. I tried to: login.componentts.: public…
-
1
votes1
answer1025
viewsPosition right bottom button with angled and boostrap
Use Stripped bootstrap table with Angular 6. That’s the screen: See that there’s a button plus in the upper left corner and it should be under the table, right side. This is my html <nav…
-
1
votes0
answers30
viewsSocket.io. How to connect and upload user id
By default the socket.io generates a unique id. I need this id to be the same id as the user in the database. Have any way to set the id? if not, how my client front recovers the id generated by the…
-
1
votes0
answers86
viewsGoogle maps inside the Ionic 3 segment?
I wonder if it is possible to add this map in an Ionic segment tab. I even managed to use the map perfectly as I want, but I would like to leave it only in a tab of the segment. When I put it on it…
-
1
votes0
answers28
viewsANGULAR AND ASP.NET together on the front end
I have a question, is it possible to use Asp.net and angular in the front end ?? type one page is in Asp.net and calls another which is in angular ?? Because I am working on a current project where…
-
1
votes1
answer531
viewsWorking with app routing at angular
My application starts in the Appcomponent, in the Appcomponent I set the <router-outlet> </router-outlet> Set the following routes: const appRoutes: Routes = [ { path: '', component:…
-
1
votes0
answers438
viewsHow to change the angular version within an Asp.net core project
I have an Asp.Net Core 2.0 project. Well, I now need to build some screens to make one CRUD using Angular. One should use the Angular 6, here at the company. Well, when I added in this Solution the…
-
1
votes1
answer279
views -
1
votes1
answer876
viewsClose modal by clicking outside
I have a modal that when I click out of it I would like it to close. For reasons of position problems, I’m using data-backdrop=false My modal: <div class="bd-example"> <button type="button"…
-
1
votes1
answer693
viewsI can’t load data into an angular mat-select 6
This is my html <div class="container"> <form [formGroup]="createForm" (ngSubmit)="onPostCreateTypeFields()" style="width:400px; margin: 0 auto;"> <h1>Fields</h1> <div…
-
1
votes2
answers78
viewsHow to display and hide Toogle inside ngfor correctly?
listNotas() { this.service.getList(this.idAluno).subscribe( data => { this.error = data.error; this.list = data.message; console.log(this.list); }, err => console.log(err) ); }…
-
1
votes1
answer643
viewsCall delete at angle 6
I have this HTML <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered table-hover"> <caption>Lista…
-
1
votes1
answer39
viewsHow to initialize form using value from an angular service
I’m returning from mine API an integer, and then, with the angular need to show this value as default in this tag: <input type="text" formControlName="pacienteId" class="form-control"> I know…
-
1
votes0
answers20
viewsUpdate(Put) on my project does not write to BD(Mongodb)
I need to make an editing screen and I’m not getting it. See how my Component is doing(I’ve eliminated Imports to save space) @Component({ selector: 'app-operators', templateUrl:…
-
1
votes1
answer177
viewsInheritance class: error TS2554: Expected 5 Arguments, but got 0
I have two classes in Angular 4 that are related by inheritance, however in doing the build makes a mistake: error TS2554: Expected 5 Arguments, but got 0. Pai Class: constructor(protected http:…
-
1
votes0
answers153
viewsUse Promise when uploading files in Angular and Node.js
Good afternoon guys, I am with a registration form in homologation, but when I upload an image and a pdf file in the first moment my request returns that I have not filled all the data, but then…
-
1
votes1
answer190
viewsHow can I remove an array value by clicking on the typescript checkbox
I have a checkbox that when clicked makes a push in an array of name perm_telas, but when I select again a check already selected it is not removing correctly the value of the array. I tried…
-
1
votes1
answer32
viewsUnreachable code Detected at angular
Watch this code snippet; this.notificationService.notify(`cadastro feito com sucesso`) I created a project in Angular, if it is an Ecommerce system, every time I select a product it can notify the…
-
1
votes1
answer169
viewsAngular: Error in system modules
Hello! My application has stopped compiling, causing problems in general purpose modules. The Crypto module was the first error that appeared, so I looked for a solution to this error. The solution…
-
1
votes0
answers42
viewsFunction Problem IONIC 2 Typescript - Function runs only once
Goodnight! I have a problem with a function in Typescript(Ionic 2). The function does a search/filter from the contents of the tags. The user enters the number you want to search for and the…
-
1
votes1
answer27
viewsProxie no Ionic
I’m having trouble making http requests on Ionic, I saw that one way to bypass CORS is by using proxies. I tried something like: Ionic.config.json: { "name": "appIonic", "integrations": { "cordova":…
-
1
votes0
answers67
viewsFields disappearing in Ionic after selecting a select match
I’m implementing a feature where the user selects an option from select and is sent to a function that adds to my model. For some reason, after selecting my option select, the next field of mine…
-
1
votes0
answers101
viewsReferenceerror: EXIF is not defined from ng2-img-max?
I installed ng2-img-max in order to resize images. I want each image sent to be resized to a predefined width and length. I see that most people use ng2-img-max when developing with 2/4 angular. I…
-
1
votes0
answers461
viewsTurbo Table with Checkbox - Primeng
Hello, I am using Typescript, Angular 5, Primeng and Java for ERP system development. My front has a screen so that the user can choose the days of operation of the establishment. This screen has a…
-
1
votes1
answer492
viewsIONIC3 - Error - Typeerror: Undefined is not an Object (evaluating '_co.person.id') - I can’t find the cause of the error
Hello I am developing an application with Ionic3, but I have an error that I can not find the cause, I thought it was a bug, already restarted the server (Ionic serve --lab) several times but the…
-
1
votes3
answers864
viewsFont Awesome icons do not take Primeng
I have the lib of Font Awesome installed and configured in my project, and I have the lib of Primeng also installed, but the icones of Font Awesome is not getting the Primeng Datatable, is something…
-
1
votes1
answer5065
viewsHow to navigate between pages using buttons with Ionic?
I’m trying to understand how to navigate between pages with ionic2. I want that by clicking the button below it redirect me to HomePage, how can I do this? Button in.html menu <button ion-button…
-
1
votes1
answer124
viewsNode_modules folder does not go up to svn
I have this (original) dependency file numeral which is in the folder node_modules -> numeral ->locales -> pt-br // numeral.js locale configuration // locale : portuguese brazil (pt-br) //…
-
1
votes0
answers677
viewsError: Uncaught (in Promise): Typeerror: Cannot read Property 'name' of Undefined
You are generating this error by entering the page. Error: Uncaught (in Promise): Typeerror: Cannot read Property 'name' of Undefined Typeerror: Cannot read Property 'name' of Undefined at…
-
1
votes1
answer674
viewsPrimeng dropdown does not load
I think my problem is the HTML page in my Angula project, I can’t help but point out that I’m using the Primeng lib. See the figure below, it is perfectly loading my list; But I still can’t load my…
-
1
votes1
answer500
viewsThe Primeng Dataview buttons don’t look like
See the image below with the arrow indicating which is the button; That button’s not showing, it’s supposed to be like this; What is going on? No error message appears anywhere. This is a Primeng…
-
1
votes2
answers1149
viewsInsert comments into an IONIC app
I am creating an application where underneath the content of the page I have the option of the user to make a comment. I’m using firebase to register and login and I’ve even been able to record the…