Questions tagged as 'angularjs-2.0'

2
answers

Get facebook data with ionic 2

I'm doing login with facebook with cordova-plugin-facebook4, just like it's on the home page link . Just give me the facebook id, I'd like to bring the email and the name. I did it this way config.xml <plugin name="cordova-plugin-fac...
asked by 25.09.2017 / 17:35
3
answers

Invalid CORS request Angular 2

Good morning, I'm a little desperate because I'm unable to perform an UPDATE through an API. The request gives me an error:    403 by Invalid CORS request. My service: private urlApi= 'http://localhost:8080/api'; updateIt(id: str...
asked by 28.02.2017 / 11:27
1
answer

Is it necessary to initialize an object in angular?

I have an external class export class as template for an object. export class Car{ name: Boolean; other: { prize: String; brand: String; }; doors: { number: String, size: String, }; } I try to access it from...
asked by 16.01.2018 / 13:42
3
answers

Get only the first element of an array with NgFor

I have an array of elements where I only want to bring the first one ( sale_price ), but in ngFor it brings all the sale_price . Code Angular : <*ngFor="let valor of equipo.equipment_details;">{{valor.sale_price}}&...
asked by 27.12.2017 / 21:13
2
answers

Where I find the Angular Documentation 4.4.6

I need the Angular 4.4.6 documentation since the one shown in the Angular page is Angular 5.0.0 . If someone knows where to find it, share it.     
asked by 03.11.2017 / 16:28
1
answer

I have an error with [(ngModel)] in an ionic 2 application

I have an error and I do not know what is wrong My code is as follows: Html <ion-col col-12 class="informacion flex" *ngFor=" let edad of edades; let i=index "> <ion-input class="" [(ngModel)]="edad" type="text" placeholder="...
asked by 19.09.2017 / 05:22
1
answer

Import $ http in constructor ($ http is not defined)

I am trying to make a request AJAX from Ionic , I have this html: <ion-header> <ion-navbar> <ion-title> Prueba AJAX </ion-title> </ion-navbar> </ion-header> <ion-conten...
asked by 10.07.2017 / 22:20
1
answer

How to select an html element for the id from the ts with Ionic?

I need to select the instance of a html element for its id from the ts of a page of ionic , how do I do this?     
asked by 16.08.2017 / 23:09
2
answers

Error with Angular-CLI, when generating run ng generate route

I'm following an angular-cli tutorial of angular2 that indicates executing the following command: ng generate route dashboard But when I execute it, I get the following error: Invalid blueprint: route Is there an automatic way to gene...
asked by 06.03.2017 / 00:23
1
answer

call get on ionic 2

Good, I am new in this of angular 2 and ionic 2 and I do not understand well the theory of the constructors and some things. I have the following code: import { Injectable } from '@angular/core'; import {Observable} from 'rxjs/Observ...
asked by 13.01.2017 / 17:02