Questions tagged as 'angularjs-2.0'

1
answer

How to obtain the selected value of a SELECT in Angular 4?

I'm starting in the Angular 4 framework, and I have a question about Select, I need to know what option the user of my Select selects. In my App.component.html I have this code: <select name="" id="cantidad" (change)="capturar()">...
asked by 30.09.2017 / 20:34
1
answer

How can I export a function from one component to another? ANGULAR 2/4

Good stackeros!, I have learned to use the Output () / Input () in Angular 2/4, and while practicing, it has given me the chance that I needed to export (Output) a function I had already created in one component, and import it (Input) to an...
asked by 12.08.2017 / 14:15
3
answers

Angular access 4 to php does not receive the JSON

Good day, I have a problem, I have my file JSON by xampp, and effectively this code extracts the data I need in JSON . In the part of PHP , if you receive files JSON and insert them into the database very well, but when...
asked by 27.07.2017 / 00:39
1
answer

Parameter step undefined in Ionic 2 when there are Tabs

Esoy using the tabs in Ionic 2 but I can not pass parameters between them. Currently, what I'm trying to do is to import the class that contains the tabs into one of the tabs and try to access a method of that class that returns the values....
asked by 29.03.2017 / 15:02
1
answer

Can not read property of undefined Angular 2

Good morning. Currently I have a view, from which I recover a data that happened to a component that calls a service. The data passes from the view to the function of the component by means of a click event without any problem. But when you c...
asked by 24.02.2017 / 13:12
1
answer

define a function of an object in typescript

Good morning, I am new to Typescript and would like to know how I can pass my JavaScript code to Typescript, since I am rewriting my code in Angular 2. Example: var o = geotab.addin.addinangular= function () { 'use strict'; return...
asked by 11.04.2017 / 23:50
1
answer

How to know when when the request to the server has ended with Angular2 and Firebase

I am using angularfire2 to communicate with the Google Firebase backend. This is the code: import {Component} from '@angular/core'; import {AngularFire, FirebaseListObservable} from 'angularfire2'; @Component({ selector: 'app', template...
asked by 15.07.2016 / 15:00
3
answers

In Angular you can load the Bootstrap CSS in the index.html

I have bootstrap installed in a angular project with angular-cli and I need to load the bootstrap.min.css file from the index.html file with the LINK tag. When running the application the file boos...
asked by 19.07.2017 / 17:39
1
answer

Collect JSON from an API with Angular 2

I try to pick up the JSON provided by an API that I have created in a service, but I do not receive it for whatever reason. getLibro(id: string){ return this._http.get(this.url + 'libros/' + id) .map(res => {...
asked by 05.06.2017 / 13:18
1
answer

How do I order an pipes in Ionic 2?

I need to organize a product list sorted by Array of String as properties of Array of objects example: Case 1 <div *ngFor="let producto of productos| orderBy:'nombre,descripcion' : 'ASC' || 'DES'"></div>...
asked by 27.06.2017 / 19:11