Questions tagged as 'angular'

1
answer

Problems with IONIC 2 in various aspects

The big question is: What happened to IONIC after the updates. A few months ago I started a project with IONIC 2 for a client. Due to some of my mishaps and the client's part too, the project made a stop. However, we are now back to active an...
asked by 14.07.2017 / 05:00
1
answer

"Maximum call stack size exceeded" error when instantiating object

I have the following classes in an Ionic 2 app export class JobIteractionsModel { public _idJob: number; get idJob() { return this._idJob } set idJob(idJob: number) { this._idJob = idJob } public _dataHoraInicio: Date; ge...
asked by 05.07.2017 / 12:08
1
answer

Angular 2 - Change 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 console.log, but is not changed in the variable set in the component. Variable to be changed: step0:...
asked by 24.06.2017 / 03:44
1
answer

Ionic - request api php

Personal I'm trying to make a request go post in an api php, it returns me undefined. My provider: import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import 'rxjs/add/operator/map'; /* Generated class for the P...
asked by 25.05.2017 / 22:49
1
answer

Save token that comes in the response of Api

I'm trying to save the token that my server sends on every request. Although apparently "Authorization" is present in the response, I can not print the value. The code is: Whatisreturnedfromtheserver: WhatIcanprinttotheconsole: OntheserverI'...
asked by 25.04.2017 / 22:51
1
answer

Error trying to run the app with ionic serve

When trying to run the app with ionic it serves this giving the following error: > ionic-hello-world@ ionic:serve D:\www\mobile\app > ionic-app-scripts serve "--v2" "undefined" "--address" "0.0.0.0" "--port" "810 0" "--livereload-port" "...
asked by 10.06.2017 / 17:25
1
answer

Failed to run ionic server

Good afternoon, I'm trying to run the ionic serves right after creating the project without even tinkering with anything and always comes the same fault. I do not know what to try anymore. When I run the "ionic serve" command it brings me...
asked by 28.03.2017 / 20:25
1
answer

Increase property of an object within an array

I do not know what is the best way to implement this, I am trying with switch without success ... When I click the button, I want to increment the "qtd" property; choice=[ {"id":"1","name":"PRODUTO1","qtd":"0"}, {"id":"2","name":"PRO...
asked by 27.04.2017 / 21:09
1
answer

Error when using css own ionic 2

   Css example: .ion-content { background-color: #000000; }    home.ts import { Component } from '@angular/core'; import { NavController, ViewController } from 'ionic-angular'; import { HomeService } from './home.service';...
asked by 28.02.2017 / 15:30
2
answers

Pass an object as a parameter to another component using Angular 2?

I am a beginner in Angular 2 and need to open a page (Component) and pass an object to it. The routes are mapped and in the calcularResultado function, I need to send the objects to the component defined in the "/ result" route import {...
asked by 07.03.2017 / 02:50