Questions tagged as 'angular'

1
answer

Pass function through two way data bind

I wanted to know if it is possible to pass a function through the two way data bind of the angle. I'll try to explain, I have a 3-button component and would like to use them in several parts of my project. I wanted to pass the functions to the...
asked by 19.01.2018 / 17:23
1
answer

How do I import my CSS styles and my JS scripts into an angular project?

I have an Angular 2 project, and would like to import the scripts and stylesheets for my project. When I'm going to encapsulate my project in sessions, the angular does not properly interpret the files for the stylization of the entire projec...
asked by 22.11.2017 / 12:23
3
answers

BadRequest 400 HttpParams Angular 4.3

I'm using the new angle library to make requests, HttpClient . Along with the angled 4+ I am using here in the enterprise for the backend , Java with Spring (boot). The problem is occurring at the time of making a GET request for the b...
asked by 04.12.2017 / 16:06
1
answer

Extract Data Elements from API 2

The data of the two APIs comes in my console, the problem is that in the html in * ngFor it is only possible to scan the elements of the 1st subscribe that I store in dados , I would store the data of the 2 api's in order to use the data o...
asked by 15.01.2018 / 14:17
5
answers

How to get the last position of an ID in the array

Hello, I have a function that captures coordinates of elements that I move on the screen with the mouse. But this function of mine takes the trace of the coordinates of the elements that I drag, I would like to take only the last coordinate of e...
asked by 16.01.2018 / 12:43
1
answer

Firebase Cloud Messaging with $ cordovaPush, how to work for iPhone too?

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 error is that when the user logs in, he takes the senderID from Cloud Messaging and regist...
asked by 14.08.2017 / 16:30
1
answer

Image can not be loaded into the application

The image appears normal when running in the "ionic serve" but when I squeeze in a device ionic run android --device it can not be loaded, strange that I put an alt in the img tag and can only display the alt, nothing appears. My tag look...
asked by 13.10.2017 / 22:21
1
answer

How to get a string from a json?

I'm developing an application and need to save in a string type variable that comes in the server json. How to solve? export class InicioPage { users : any[]; vaga : any[]; nomes : boolean = true; elementType : 'url' |...
asked by 07.09.2017 / 00:31
2
answers

Error and MySQL: [ngRepeat: dupes] Duplicates in a repeater are

I am developing an example with IONIC but it is giving the error: ionic.bundle.js:19387 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: usuario in usuarios, Duplicat...
asked by 03.05.2016 / 00:38
1
answer

* ngFor with angular2

I would like to create a loop of repetition, but in this loop I already have the amount of times it will execute. Below is an example of the expected result using javascript. for(i = 0; i < 5; i++) { console.log( i + 'estrelas!'); }...
asked by 27.04.2016 / 18:54