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
answer536
viewsCreate Angular and Firebase reports
What to use to create reports with Angular and Firebase? I have an application in the area of health with Angular and Firebase, I’m coming in the part of system reports and would like alternatives…
-
0
votes1
answer53
viewsCan I call a function within Validators in a reactive form?
I made a method and I’d like to use it as Validators, in a reactive form, in Angular 2. It is possible? controle(){ let data : number = this.formCep('nasc').value.split("-")[2]; let atual = new…
angularasked 6 years, 9 months ago Vitor Marcolino 19 -
0
votes1
answer150
viewsREST/JAVA+ANGULAR2 authentication
I have a java Rest api and need to perform an authentication (login/password). I’m basing myself on this java code that uses Jwt: http://www.totalcross.com/blog/seguranca-com-jwt-e-java/ My question…
-
0
votes0
answers35
viewsAngular No Heroku Accesses URL Typing
I would like to ask a question, I am making a soft with Angular 5 and Restful Webservice when I test the location I can access the URL normally directly when I try to do this with the application in…
angularjs-directives angularjs-scope angular-routes angularasked 6 years, 9 months ago Ederson Coelho 143 -
0
votes1
answer531
viewsMap Json Angular Data 2
I created a service to load a Json API: import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import…
-
0
votes1
answer89
viewsIs it possible to connect my Laravel app with Vue or Angular?
I started a project that will have an application in the future Vue or Angular. My question is whether it is possible to make this link between the system and the application and whether this "link"…
-
0
votes1
answer2710
viewsAccess another Component function (Angular5)
Suppose in my Componenta I have a list of products. In my componentB I have a modal that registers my products. When registering a product, I want the componentB to call a Componenta function to…
angularasked 6 years, 8 months ago Angular Man 47 -
0
votes1
answer2038
viewsHow to work with select and options at angular 2
have 2 fields select,precise q when I select a value automatically it select an array of options for the other Home Component eventAt:string='' @Output() selecionaEvento = new…
-
0
votes2
answers1168
viewsRelative path to Angular 4 source files
after creating an Angular standard application with the ng new aplicacao and inserted the libraries of Primeng, Bootstrap, Fontawesome the application runs normally through the ng server. After…
angularasked 7 years, 3 months ago emersoncpaz 1 -
0
votes2
answers2067
viewsMaskmoney c/ Jquery or Javascript
How to create a mask for Real R$ values? I tried to use http://plentz.github.io/jquery-maskmoney/ but I was unsuccessful. I need a mask that introduces me to something like this: R$ 0,01 R$ 0,10 R$…
-
0
votes1
answer142
viewsInclude Sass in angular 5
What better way to set up SASS at angular 5, and there is some specific implementation to organize it in the project.
-
0
votes1
answer716
viewsError message : Cannot read Property 'thisCompilation' of Undefined
I’m using Angular for a project and Visual Studio Code when running the command ng serve, return the following error to me: NG Live Development Server is Listening on localhost:4200, open your…
-
0
votes0
answers15
viewsAccess value within component tag
In my component I’m trying to take the value inside the tag of this same component to display it in the html of it, however, this component is the main component of my application, What I’m wanting…
-
0
votes1
answer70
viewsAngular Service using third-party Packages
I’m creating a service in angular who consumes a package to consult a api, but I always get the same mistake; Can’t resolve all Parameters for Apiservice: (?). the Code: import { Injectable, Inject…
-
0
votes1
answer398
viewsArray of recovered data from a Response
have a service Rest q returns Macs coming from a scan,the json template and this: { "macs": [ { "mac": "9C:5C:F9:66:73:34" }, { "mac": "B8:A3:E0:72:9E:EA" }, { "mac": "00:E0:4C:2A:26:60" }, { "mac":…
-
0
votes1
answer51
viewsHow to count the columns of a <td> showing the tatal at the end
I’m making a list of calls and I need to count how many absences and justifications each student has, but I’m not getting it. Someone could shed a light. I’m lost in that part. <!-- PRECISO SOMAR…
-
0
votes1
answer526
viewsSetar localStorage in different Omains
I have three applications: 1. Login (which runs on door 8080) with jQuery very simple 2. API (wheel at port 4000) with Nodejs 3. Web (rotating at port 4200) with Angular When I am logged in and…
-
0
votes1
answer1027
viewsDoubt about the Ngfor
Good evening, everyone, I would like to make a select interact with each other and both have an Ngfor that lists within the option tags. The problem is that for the list of the second select I need…
-
0
votes1
answer53
viewsFirebase Cloud Messaging with $cordovaPush, how to work also for iPhone?
I am emulating my application by Intel XDK for IOS. I use it by working with Windows and it emulates and gives the error messages very well. The first mistake, is that when the user logs in, he…
-
0
votes1
answer5218
viewsHow to generate an Angular PDF report
Hello, I would like to generate PDF reports using Angular consuming firebase data. Is it possible to report multiple pages from HTML or using Typescript? Please help me
-
0
votes2
answers913
viewsSort data by date in Firebase
I would like to sort the data returned from Firebase by Due Date, at the moment I am doing as follows: this.Collection = document.collection('values', ref => ref.orderBy('data_vencimento')); But…
-
0
votes2
answers349
viewsHow to declare a javascript array that will receive a JSON array
Given the interface: export interface Pergunta { id: number titulo: string opcoes:[] } I want the options array to receive its options array: { "id": "1", "titulo": "Qual o seu comportamento em…
-
0
votes1
answer302
viewsFormat ISO date (yyyy-MM-ddThh:mm:ss.sssZ) to be displayed in INPUT (dd/mm/yyyy hh:mm)
The server gives me the date in ISO format (yyyy-MM-ddThh:mm:ss.sssZ). How do I have this date displayed in the input with dd/mm/yyyy hh:mm format? <input type="date" class="form-control"…
-
0
votes1
answer50
viewsRemove information from within an angled array
I have an array with some information and that always comes with 4 numbers in front of the Names: {id: 1810, name: "2652joaodasilva", username: "", password: ""} {id: 2744, name: "3704DiegoSerri",…
-
0
votes1
answer156
viewsCreating multiple error paths in Angular 2
Hello, I’m working with Angular 2(v4+), where my application has the following structure containing 2 modules that are dynamically loaded (via loadChildren): Directory structure app |-foo | |-…
angularasked 7 years, 3 months ago LeandroLuk 4,989 -
0
votes1
answer159
viewsHow to override a Loader above the Divs at angular2
I’m trying to implement a Download in an angular project while requesting the request. but I’m not getting to position it in the center of the screen superimposing the other Ivs... look how it’s…
-
0
votes0
answers52
viewsAngular 5 does not listen to file changes
I am having problems with angular 5. When changing the html of a Component is not recompiling the code, I have to stop and restart the compiler to show my change. I am using the ng build --watch…
angularasked 6 years, 7 months ago Marcos Barbosa 91 -
0
votes1
answer88
viewsDisabling check according to selected quantity
I have a component that has an input:checkbox. This component is repeated several times on the screen. How do I block the checkbox, limiting my user to click at most 3 checkboxes IE, the user will…
-
0
votes1
answer382
viewsHow do I keep my Angular application running permanently?
To keep the Nodejs server running permanently on the computer is the following procedure; $ npm install forever $ forever start server.js However, how do I make my Angular application run…
-
0
votes0
answers208
viewsIonic, service, how to create a task
I wonder if it is possible to create a service in Ionic, running even with the app in the background and that at certain times run a method as if it were a setTimeout but always active.
-
0
votes2
answers494
viewsInitialize a form with values of an object with ANGULAR 4
I’m having trouble creating a CRUD with Angular 4. I’m trying to create a form by putting the value of an object in it, to be able to edit it. Following example: <form #editar="ngForm"…
-
0
votes2
answers1052
viewsHow to properly configure routes at angular 4 with Lazy loading
my link to list the simplement client does not work , wanted to know why WHAT I WOULD HAVE TO DO TO CALL THE ROUTE /list customers and not customers/list customers 1 - Clienteroutingmodule 2 -…
angularasked 7 years, 2 months ago Paulo Ceami 19 -
0
votes2
answers1034
viewsHow do you pass two parameters in Ng-click Angular JS?
<button class="btn btn-conf-t btn-deletar" ng-click="deleteCategory(cat.id)"><i class="fa fa-trash"></i></button> Here I just step one parameter, it is possible to pass…
-
0
votes2
answers289
viewsRedirect with . htaccess if url contains string
I am working on an application using Angular4 and PHP, for the Angular URL to work, I need to use a certain configuration in .htaccess to direct to the index.html, thus: <IfModule…
-
0
votes1
answer62
viewsHow to get a string from a json?
I am developing an application and need to save in a variable of string type what comes in the server json. How to solve? export class InicioPage { users : any[]; vaga : any[]; nomes : boolean =…
-
0
votes1
answer179
viewsDependency injection, Angular
I’m learning Angular, and I’ve had a little bit of addiction injections. On the site it says that the @Injectable() decorator must have a declared service provider. Something like this:…
angularasked 6 years, 6 months ago Raphael Ferreira 1 -
0
votes1
answer84
viewsJoin Angular Projects
I created several angular projects simulating faces of a system, ex: stock design, financial design and etc. And now I came up with a question, I was going to make a single login system that would…
-
0
votes2
answers866
viewsAngular 4 App on Apache
I would like an example of htaccess to use in my Apache. The scenario is as follows: I have an Angular 4 application that needs to run on a separate back-end server. I build using the ng build…
-
0
votes1
answer388
viewsConsume REST IONIC3
hello, I am new in the area of Web and Ionic3 and I have a problem, I followed a tutorial to consume a API Rest, I managed to bring the list with users, however I want to bring a specific user and…
-
0
votes0
answers284
viewsBootstrap does not work on Angular V-6
I can’t get Bootstrap on my page: installed version 3 npm install --save bootstrap@3 in the angular.json put the path: "styles": ["../node_modules/bootstrap/dist/css/bootstrap.min.css"…
-
0
votes1
answer127
viewsData typing
all right? Putting into practice what I learned in angular/Ionic, I came across some doubts: 1- I made an ion-select with a list of states coming from firebase. When I typed the model States, be in…
-
0
votes0
answers20
viewsDisable/ Enable components when changing
I have this variable change Record : Boolean;. in this method ngOnInit(), I check if it’s a change or not ngOnInit() { this.empresa = new Empresa; if(this.routaAtual.snapshot.url.length > 1){ let…
-
0
votes2
answers1474
viewsRedirect a route from a "childModule" to another "childModule" with Angular 2 ( 4.0)
Hello, I’m working with Angular where I have a structure like this: |-app |-fooModule (fooPage1, fooPage2) |-barModule (barPage1, barPage2) These two modules are being loaded using lazyLoad in the…
-
0
votes1
answer730
viewsAngular application does not run locally on IE?
Follows the image of the error in the browser (Internet Explorer v.11): DETAIL: in other browsers (Chrome and Firefox) works (wheel/charge).…
-
0
votes1
answer694
viewsUsing Input or declaring in metadata?
have the following doubt: Today as far as I have seen there are 2 ways to receive information in an Angular Component. But I doubt the question "performance". The example below I import the Input…
-
0
votes0
answers61
viewsAngular 2 - Template?
In a structure like this: <header></header> <main> div1: <router-outlet></router-outlet> div2: <router-outlet></router-outlet> div3:…
-
0
votes1
answer965
viewsArray in Ionic of json file
I have the following JSON document "descritores": [{ "descritor": "texto..", "resultado": [{ "MediaTotal": "81,16" }, { "MediaTotal": "81,16" } ] }, { "descritor": "Texto 2..", "resultado": [{…
-
0
votes1
answer424
viewsUncaught Referenceerror: vira1 is not defined
I’m creating a function but when it’s called it says it hasn’t been defined yet, what would be the reason ? import { Component } from '@angular/core'; import { NavController, NavParams } from…
-
0
votes1
answer661
viewsFunction to open the full screen (Fullscreen) at angular 2
I’m needing q my screen opens full ... When I give an ng Serves the application when running it comes with a fullscreen. Can someone give me a tip on how to do this ?
-
0
votes2
answers1585
viewsThe map property does not exist in type 'Observable <Response>'
I am using version 6 of Angular and found an error when using Observable. It says q the map property does not exist in the Observable type. my code is like this. import { Observable } from…