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
answer58
viewsSet the Angular 2 component/app in the <body> tag
I would like to define the tag <body> as root of my Angular 2 application instead of creating a daughter tag <my-app> (for example).
-
1
votes2
answers475
viewsCreate menu of options
I need to make a menu of options in my application developed in Ionic 2. I already checked the documentation and found nothing to help me. Does anyone know how to do ? Do you have a tutorial or a…
-
1
votes1
answer74
viewsEquivalent to setOnItemLongClickListener in Ionic 2
I created a function in which when the user gives a click simple in item, shows a Toast, an alert, on the screen with the name of this item: Function in my file .ts: itemSelected(item: string) {…
-
1
votes1
answer123
viewsHow to popular an Sqlite database through a . sql file?
I have a file .sql and need to run all rows, insert all records that are in it, into a table within the Sqlite. Contents of the archive mydb.sql: CREATE TABLE tblVeiculo (VeiculoId INT, Codigo…
-
1
votes1
answer209
viewsReturn Json value with angular 2
I am working on a project where I need to return a database value that is picked up via REST in json format. The front end of the project is in angular 2. I have a workers' table and I need that…
-
1
votes0
answers96
viewsI wanted to call this function within my anonymous function, how can I do that?
retonaEndereco(myLatlng,adress => { let getDistance = function (origin,destination) { let distance = geolib.getDistance(origin,destination); return…
-
1
votes0
answers54
viewsUnscripted file refresh_token sending request with angular 2
When I make the request to recover the token it works, but when I send the request Grant type refresh_token the Laravel cannot decrypt the refresh token. Angular 2 let params = { client_id:…
-
1
votes2
answers428
views*ngIf with Boolean
I have a boolean argument on a *ngIf, however it does not seem to work. If the argument is true: <ion-input type="text" *ngIf="produto.fracionado" value="Sim" readonly></ion-input> If…
-
1
votes2
answers11462
viewsPass an object as a parameter to another Component using Angular 2?
I’m a beginner in Angular 2 and need to open a page (Component) and pass an object to it. Routes are mapped and in function calcularResultado, need to send the questoes object to the Component…
angularasked 7 years, 8 months ago Messias Lima 199 -
1
votes1
answer3148
viewsHow to use components exported from other modules at Angular 2
I’m starting to use Angular 2 and I’m having trouble accessing an existing component in a module I created. When opening the application, route root should be directed to the module IndexModule…
-
1
votes1
answer121
viewsCannot find module@google/maps
I’m using the package @google/maps, installing: npm install @google/maps and npm install @types/googlemaps I made the import: import * as gmaps from '@google/maps' But I get the error Cannot find…
-
1
votes3
answers628
viewsChange body’s standard 8px margin at Angular 2
Good afternoon, I’m starting with Angular 2 and I’m having a problem to remove the margins of the body from 8px, I tried to include in the body tag of css margin:0, but it came to nothing. Could you…
angularasked 7 years, 8 months ago Diemano Nóbrega 170 -
1
votes1
answer187
viewsHow to use Pnotify inside the angle
i have the following code and I want to use Pnotify to give notifications when the user and/or password is incorrect or/e white mandatory field. How do I? Remember that I am using Asp.net mvc and…
-
1
votes1
answer241
viewsFIREBASE WARNING: Using an unspecified index
I’m getting following error: FIREBASE WARNING: Using an unspecified index. Consider Adding ". indexOn": "rota" at /motoristas to your security Rules for Better performance Firebase rules: { "rules":…
-
1
votes0
answers180
viewsRoutes - Angular 2
I will use an example of an admin panel. At angular 1 I had the $stateProvider.state() that inside it I could set up an internal name and the url that would be accessed, so I would have, for…
-
1
votes0
answers21
viewsAngularjs Services API. Does not load TITLE when sharing link
Good afternoon, I need some help finalizing a project. I have a problem that when sharing the links on social networks, the tags title, Description and etc will not load with the values returned by…
-
1
votes1
answer435
viewsI am trying to install Ionic 2 but it is giving error in the time to run npm install -g Ionic codova
Gustavo@Gustavo-PC MINGW64 ~ $ npm install -g cordova ionic npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or…
-
1
votes3
answers1219
viewsHow to delete with Angular 4
I created a class to delete data from a database but I don’t know what I call the same class by Angular 4 in the html code. //Classe Delete deleteClient(client): void { if(this.client.id){…
-
1
votes0
answers109
viewsIonic 2 Error when generating build for android in windows 10
$ ionic build android > ionic-hello-world@ ionic:build C:\Users\Gustavo\Documents\Ionic2\like_you > ionic-app-scripts build [20:16:23] ionic-app-scripts 1.3.0 [20:16:23] build dev started ...…
-
1
votes1
answer583
viewsProperty forChild does not exist on type typeof Ionicmodule Ionic 2
I created a new Ionic project 2: ionic start myApp blank --V2 Until then, only when I create a new page: ionic g page login He’s making the following mistake below: Typescript Error Property…
-
1
votes1
answer8903
viewsUncaught (in Promise): Error: Cannot match any Routes. URL Segment:
I am getting the following error when I try to open a new form via [routerLink]: error_handler.js:54 EXCEPTION: Uncaught (in promise): Error: Cannot match any routes. URL Segment:…
-
1
votes0
answers342
viewsAngular2 Update variables between components
I’m starting at the angular 2 and would like to know the best way to do the following: I have 2 Components, Toolbar.Component and profile.Component. When the user updates the name of the logo and…
-
1
votes0
answers72
viewsHow to leave one or more options preselected (ion-option)
I have an array that I fill with service data from the database. And I also have a relationship table in the database between user and service. I would like to mark as selected the options that the…
-
1
votes0
answers769
viewsJson object in Ionic 2
I’m starting with Ionic 2 and Node.js and I’m trying to consume the API I created, but I’m having trouble locating the problem when I try to generate a ngFor listing from a JSON, so I’ve read ngFor…
-
1
votes2
answers979
viewsHow to add object property in Array to *ngFor
I have an array passed to a *ngFor, how do I sum the values of a property, vlr, for example. order=[ {"qtd": Number(1),"vlr":Number(3.50)}, {"qtd": Number(6),"vlr":Number(4.00)}, {"qtd":…
-
1
votes0
answers1005
viewsHow to optimize the loading time of an Ionic2 project?
I made an application with Ionic2 from scratch, using by default the project "Blank" following the documentation. The project itself is running smoothly. But one thing that intrigues me a little is…
-
1
votes1
answer254
viewsSum of <select> values inserted in <input>
I am giving a practiced in Ionic 2, I am building a basic app for this, with some interesting functions to study. I want when the user selects two "ion-option" from two different "ion-select", these…
-
1
votes1
answer1488
viewsImage cannot be loaded in the application
The image appears normal when running on "Ionic serves" but when I run on a device ionic run android --device it cannot be loaded, strange that I put an alt in the img tag and can only be displayed…
-
1
votes1
answer493
viewsAngular 2 and PHP
Hello, I’m beginner in angular 2, I’m developing an application using Angular 2 and PHP, but when having picked up the values of json gives error: ERROR Error: Error trying to diff 'Grand Turismo'.…
-
1
votes2
answers4133
viewsAngular 4 - Calling Component function through service
As Do, while in service, to call a function of the component that prompted this service?
-
1
votes1
answer1426
viewsHow to use Jquery in Angular 2
I have a theme in HTML,CSS,JAVASCRIPT and were used Frameworks like Bootstrap, Jquery, etc. I intend to implement the theme in an Angular 2 project, in certain pages there are animations,…
-
1
votes3
answers801
viewsHow to concatenate an object with a variable to be dynamic?
Guys I have trouble in angular I have my object user = {name: 'Alexandre', email: '[email protected]'} I need a way to show on the console var attr = 'name'; var attr2 = 'email'; insira o…
-
1
votes2
answers3187
viewsSensitive and global variables Ionic 3 and angular 4
I have some sensitive variables, and the ideal would be to leave all the variables in one environment, when it is necessary to change, for example from production to development, this task becomes…
-
1
votes1
answer87
viewsProgress bar Angular 2
I need to implement an image style preview, I need to create in the same structure, open at the bottom and with this information. Will it be used in an Ionic app, does anyone know any lib or how to…
-
1
votes1
answer467
viewsGenerate multiple . js files with webpack
I need to create several files. js one for each file . ts, but I don’t know how to configure webpack 2 to do this procedure. var path = require('path'); var ExtractTextPlugin =…
-
1
votes0
answers107
viewsHow to customize Stepper material icons?
Good afternoon. I’m trying to modify the icons that come by default in the design material Stepper but can’t find any workable solution. This edit icon I’m talking about. Is there any way to put a…
-
1
votes0
answers57
viewsSequential execution
I am new to the world of angular and Ionic. I have a main function that executes a command in the bank if this command gives error it calls another function . So far so good, only that this function…
-
1
votes1
answer325
viewsprint Eventemitter data at angular 2
personal ask me a question I researched more did not find answer yet I have an object inside a auth.service The code of the.Component app import { Component} from '@angular/core'; import {…
-
1
votes1
answer963
viewsAngular 2 - Changing Component Variable by Service Variable
I would like to change my Component variable through a method performed in the service. The variable appears from true to false as desired in the console.log, but is not changed in the fixed…
-
1
votes1
answer37
viewsProblems with insertion into an array
vm.categorias = function () { ConectaVagas('get', 'categorias').then(function (val) { vm.categorias = val; for (var a = 0; a < vm.categorias.length; a++) { console.log(a); // Aqui retorna 0,1,2,3…
-
1
votes0
answers57
viewsAngular 5 authentication with Steam Openid 2.0
I’m trying to authenticate with the Steam Openid 2.0 provider at Angular 5, but I found only Openid Connect libraries, and they don’t work with Steam. Return this error: Failed to load…
angularasked 6 years, 9 months ago M. Guilherme Neves 31 -
1
votes0
answers205
viewsPlugin Cordova Paypal in Ionic using Real (BRL)
I installed the Paypal plugin in an Ionic application following this tutorial: https://ionicframework.com/docs/native/paypal/ I created a Sandbox account, marked the account is in "Brazil". The…
-
1
votes1
answer550
viewsSave form-data in webapi C#
I have the following code in Angular 2 for a form-data post method: upload(event) { let files: FileList = event.target.files; let formData = new FormData(); for (let i = 0, f; f = files[i]; i++) {…
-
1
votes2
answers3915
viewsERROR Typeerror: Cannot read Property 'push' of null
I am trying to push to a list and the following error is occurring: ERROR TypeError: Cannot read property 'push' of null at…
-
1
votes2
answers1119
viewsGenerating Barcode (Bankary billet) with Angular
I have an application running in angular 5 (using angular cli), I’m performing integration with a payment method, I already have all the data necessary to generate the billet, then the headache…
angularasked 6 years, 9 months ago Caio Michel dos Santos 75 -
1
votes0
answers975
viewsHow to mount a dynamic combo with angular 5?
I’m trying to build a dynamic combo with Angular, but I’m not succeeding, I can implement with static values, but I was unsuccessful when I went to adapt it with my Java API that has database…
-
1
votes2
answers1376
views"checked" from "ion-radio" does not work
<ion-list radio-group style="margin-bottom:10px;" [(ngModel)]="orcamento.tipo" name="tipo" #tipo="ngModel"> <ion-item> <ion-label>Consumidor</ion-label> <ion-radio…
-
1
votes1
answer1602
viewsList Json Data with Angular 2
whereas I have a Json coming from a Url ('https://api.site.com.br/v1/servicos'). I created a service to pick up this object: import { Injectable } from '@angular/core'; import { Http, Response,…
-
1
votes0
answers50
viewsPaged selectlist in Angular2
I have the following HTML code for the list: <select data-placeholder="Origem" id="origemNew" (click)="SelecionaOrigem($event,oportunidadeNew.operacao,true)" class="chosen-select col-md-12">…
-
1
votes0
answers36
views