Questions tagged as 'angular'

1
answer

Update Angular component 4?

Good morning! In short, I have a Navbar component and it has an if that is logged if some items appear and if not, others appear. It works, the problem is that for him to validate the change, I need to give him an F5 to call the "IF" again. S...
asked by 04.11.2017 / 13:16
1
answer

Array in Ionic json file

I have the following JSON document "descritores": [{ "descritor": "texto..", "resultado": [{ "MediaTotal": "81,16" }, { "MediaTotal": "81,16" } ]...
asked by 13.10.2017 / 17:17
2
answers

How to declare IF on Ionic

I have the following code, it checks the value of _meditaTotal if it is greater than 70 the variable icon receives 'green' if it is less than 70 and greater than 50 variable icon receives 'yellow' and if it is less than 50 variable icone gets 'r...
asked by 21.10.2017 / 21:57
1
answer

Uncaught ReferenceError: vira1 is not defined

I am creating a function but when it is called says that it has not been defined yet, what would be the reason? import { Component } from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; @Component({ select...
asked by 15.10.2017 / 09:11
1
answer

$ watch in Typescript

I need that after the application starts it runs a set of functions every 20 seconds or every time a json is updated, in angle 1 had the $ watch that could be used for such functionality, in angular 2 I do not know if it has something similar, i...
asked by 17.08.2017 / 21:11
1
answer

Consume REST IONIC3

Hello, I am new to the web and Ionic3 and I have a problem, I followed a tutorial to consume a rest API, I was able to bring the list with the users, however I am trying to bring a specific user and show it on screen if I I change the URL to the...
asked by 14.09.2017 / 21:54
1
answer

Doubt about NgFor

Good evening guys, I would like to have one select interact with the other and both have a NgFor that lists inside the option tags. The problem is that for the second select list to load I need the index of the first select. Code: im...
asked by 11.08.2017 / 03:59
1
answer

Array of data retrieved from a response

I have a rest service that returns macs from a scan, the json model and this: { "macs": [ { "mac": "9C:5C:F9:66:73:34" }, { "mac": "B8:A3:E0:72:9E:EA" }, { "mac": "00:E0:4C:2A:26:60" }, {...
asked by 10.08.2017 / 17:59
1
answer

Angular 2 in production

Hey guys, I have an application in Angular 2 that I want to publish it on the website www.umbler.com hosting server but it does not consig, it has put in the server in NodeJs but it does not work. I do not know how the build part works, etc. Can...
asked by 19.08.2017 / 01:25
1
answer

Angular Service using third party packages

I am creating a service in angular that consumes a package to query a api , but I always get the same error;    Can not resolve all parameters for ApiService: (?). o Code: import { Injectable, Inject } from '@angular...
asked by 08.08.2017 / 17:59