Questions tagged as 'angular'

2
answers

Angular 4 - Call function of the Component through the service

How do I, while in service, call a function from the component that instantiated this service?     
asked by 17.10.2017 / 19:14
1
answer

How to display loading in multiple requests with Ionic 3 and Angular 4

How can I display a loading on the screen, during the request time of 2 or more requestses with Ionic 3 and / or Angular 4? I have tried to make the loading of the two requests, but whenever the fastest request ends, it hides the loading, wit...
asked by 28.09.2017 / 21:17
1
answer

Center div content in AlertController

I have the following code below let alert = this.alertCtrl.create({ message: '<div><img height="50" src="assets/imgs/success.png"></div><div>' + '<p>Cadastrado com sucesso!!!</p>' + '</div>',...
asked by 05.12.2017 / 17:15
2
answers

I can not print the object's attribute in the log

Well, I have a class: export class Usuario{ private id : string; private bluetoothMAC: string; private cpf: string; private nome: string; private oficinaVisitadas: Oficina[]; private cacheMAC: Mac[]; private saidaMAC: Mac[]; constructor(){...
asked by 15.08.2017 / 15:27
1
answer

Check an obj json option and return

Good afternoon, guys. I'm starting now with angular 2 and I'm having a problem. I have a json object and within that obj, I have several inputs and I want to filter by the colors I get in this obj. json example: public alerts = [ { tex...
asked by 20.08.2017 / 17:19
1
answer

print EventEmitter data in angular 2

I'm not sure what to do, The code for the app.component import { Component} from '@angular/core'; import { AuthService } from './login/auth.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['....
asked by 21.06.2017 / 15:46
1
answer

List data from Json with Angular 2

Considering that I have a Json coming from a Url (' link '). I created a service to get this object: import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; @Injectable() export class Plano...
asked by 17.07.2017 / 21:54
1
answer

Angular 2 and PHP

Hello, I'm a beginner in angular 2, I'm developing an application using Angular 2 and PHP, but when I take the json values it gives error:    ERROR Error: Error trying to diff 'Grand Tour'. Only arrays and   iterables are allowed and ERROR CO...
asked by 21.05.2017 / 03:48
1
answer

Property forChild does not exist on type typeof IonicModule Ionic 2

I've created a new ionic project 2: ionic start myApp blank --V2 Until then, only when I create a new page: ionic g page login It is giving the following error below: Typescript Error Property 'forChild' does not exist on type 'type...
asked by 14.04.2017 / 05:00
1
answer

How do I increment days to a date on Ionic 2

I do not have much experience with dates in Javascript, so little with the mentioned frameworks: For now, I was able to display the current date on the front end using the following syntax: this.myDate = new Date().toISOString(); How can I...
asked by 30.04.2017 / 22:30