Questions tagged as 'angular'

1
answer

Mapping Json Angular 2 data

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 'rxjs/add/operator/catch'; import 'rxjs/add/operator/do'; @In...
asked by 18.07.2017 / 14:22
1
answer

use variable to call ngFor on Ionic2

I have a variable that I display on the screen of my app called {{data.reference}}. In the sample code: <ion-item *ngFor="let cardapiohotrod of cardapiohotrod | async">{{cardapiohotrod.nome}}</ion-item> Where cardapiohotrod i...
asked by 28.06.2017 / 06:50
1
answer

Show event value of Page 2 in an input on Page 1

I have two pages and I want the value of an event (script below) from Page 2 to be displayed in an input on Page 1. Page 1 HTML: <ion-list> <ion-item text-center> <ion-input type="text" [(ngModel)]="forca"></i...
asked by 22.06.2017 / 02:31
0
answers

Application Bank Update

I'm new to application programming. I'm developing an application on ionic 2 with angular 2 . There was a doubt, I have a provider and in it I do the whole part of the database using SQLite , only the need arose to add...
asked by 14.06.2017 / 22:05
0
answers

Ionic 2 network.type = null

I'm developing an application in ionic 2 ts, but when I try to check if it's connected to the internet it returns me null. My code import { Network } from '@ionic-native/network'; @Component({ selector: 'page-home', templateUrl:...
asked by 02.06.2017 / 14:41
1
answer

Change value of a variable through another component [ANGULAR 2]

I have a boolean variable declared inside a window component, this variable is used to print / hide a link that is in the header. I want to change the value of this variable from a second component, in the case of the close component. win...
asked by 22.05.2017 / 19:10
0
answers

Problem with scope of Angular Components 2 with the import of external Javascripts

I have a problem and I believe the same is related to the scope of Components in Angular 2. First, I would like to comment on the division of the project. It is divided into five components, the App, Menu-left, Menu-header, Content and Footer...
asked by 24.05.2017 / 04:57
1
answer

firebase.auth (). currentUser returns null when reloading the page

I'm developing an application with angular2 + angularfire2 + firebase, I'm experiencing difficulties in implementing authentication, I've been able to log in and out, but when the page is reloaded I lose authentication. My Seriço. import {I...
asked by 15.05.2017 / 04:05
1
answer

required HTML5 is not working with Angular 4 component

I'm trying to validate an input from a simple form, I'm starting with Angular 4 and in my project, within a component the HTML5 "required" validation stops running. The form is loading correctly on the screen and everything works, except form va...
asked by 15.05.2017 / 16:52
1
answer

Error 404 when loading resources from the node_modules folder with Angular2

I have an application using angular 4 that is giving 404 error when trying to load css , font and javascript resources from the node_modules folder. So it's in my index.html: <link href="node_modules/font-awesome/css/font-awesome.min.c...
asked by 05.05.2017 / 14:56