Questions tagged as 'angularjs-2.0'

1
answer

Chaining promises in TypeScript - Angular 2

I have an application that consumes a REST API. With a GET I get a JSON and within that JSON there are several URLs with which I also do GET. For the purpose of the application I have to be careful with the synchronization (hence I use promises)...
asked by 26.05.2017 / 00:58
1
answer

Change color of ion-item ionic

I'm trying to change the color of ionic-ionic item by clicking on it, I'm starting with angular and ionic and I do not really know how to do it. I know that it would be necessary to pass the id to the metedo click and once there to change it, bu...
asked by 27.05.2017 / 17:40
1
answer

Use routerLinkActive without using routerLink

Good morning, everyone. I tell you my problem. I had to modify my HTML to remove the routerLink="" and now do that logic in the controller with router.navigate[()] So the html is something like this: <ul class="nav">...
asked by 25.07.2017 / 14:43
1
answer

Problem with Google Maps and Ionic 2. Missing plugin

Good morning, I'm trying to show Google Maps in my app on Ionic2. The following warnings are being given to me by console:    Native: tried accessing the GoogleMap plugin but it's not installed.       Install the GoogleMap plugin: 'ion...
asked by 07.04.2017 / 15:15
2
answers

Exception handling in angular 2

How to implement an external exception handling class and not do it in the following way and not repeat them in the different services. So that the alert is displayed by the client. return this.http.get(this.config.apiEndpoint + 'Value...
asked by 29.03.2017 / 05:20
1
answer

Access external files in Angular 2

I have created a project in Angular 2 within a JavaScript project. I need to use data and objects, within this Angular application, that are in external files and can not be moved from there. By making use of the CLI ng serve comman...
asked by 23.02.2017 / 11:47
2
answers

Pass data from father to son ionic2

Hi, I want to pass data from a parent component to a son on ionic2, I know it's done with input, but the problem is that the data is sent to me empty, using a normal angular2 application, it sends me the data without problems, but using ionic, I...
asked by 06.02.2017 / 10:43
2
answers

MyDatePickerModule is not an NgModule

I am using this module in angle 2 and this error is being presented, you can help me. app.module.ts import {MyDatePickerModule} from "mydatepicker"; @NgModule({ declarations: [ AppComponent, TestComponent ], imports: [ BrowserModule,...
asked by 25.01.2017 / 05:13
2
answers

Angular2 formBuilder and Validators do not validate in all cases

It turns out that I have a component to register articles in angular2. When I create the empty component, the validations are carried out correctly. Now, when I use the same component to edit an article and initialize the form with data, it is n...
asked by 11.01.2017 / 18:34
1
answer

filter results by date range Angular Material

Good, let's see if you can help me, I'm very green with Angular Material I have a table with N records and I am trying to filter by a range of dates. I have a select with the options (1 day, 5 days, 1 week, 15 days), which are loaded with...
asked by 18.01.2017 / 11:03