Questions tagged as 'angularjs-2.0'

1
answer

Variable range in onfocus event of an Input

I'm working with ionic 2 and I have a variable that I want to access in an event in my html code, but by console I get it undefined, how do I get to reach that variable? Code ts: import { IonicPage, NavController, NavParams} from 'ionic-a...
asked by 07.07.2017 / 23:23
0
answers

Do you use a pipe inside the ts file in ionic 2?

Perform a pipe that works perfectly within the file html , but I'm in a case that I need to use that pipe within my file ts , and import the pipe, but I do not know how to use it     
asked by 28.06.2017 / 22:45
1
answer

How to use a default value to model a segment in ionic 2?

I'm using the segment example from the ionic documentation. in the example there are two *ngSwitchCase that are these *ngSwitchCase="'puppies'" and *ngSwitchCase="'kittens'" , what I want to achieve is that by default the val...
asked by 26.06.2017 / 07:00
1
answer

Angular2 Module Http upload file support FormData

I need to upload a file in angle 2 but without having to convert it to base64 and send it as a string, somebody knows if the angular / http library supports FormData to be able to upload a file, if not, that another alternative I have. Gree...
asked by 26.06.2017 / 21:28
1
answer

Angular dynamic crud

I am creating a dynamic crud, which allows me to pass as parameters the elements that will be displayed in a table for any type of crud (users, categories, permissions, etc.) Then, depending on the type of crud, the corresponding options (the mo...
asked by 18.06.2017 / 00:29
1
answer

Angular 2 css Styles are not applied

I have the following component import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './views/noticias/noticias.component.html', styleUrls: ['./views/noticias/noticias.component.css'] }) export cla...
asked by 16.06.2017 / 19:31
1
answer

nav-content materialize

Good morning I'm using Angular2 with materialize, and in my html I have a navbar class="nav-content" I have been able to modify the style, but I can not change the color of the indicator line of the active tab. <nav class="yellow ligh...
asked by 11.06.2017 / 17:07
1
answer

Get the value sent from a first form and show it in another

I have my form where I register user data with the first and last name fields and it works perfectly; I also have another form with the same fields so that I receive the data and it also works. Now, in that same form I also...
asked by 21.06.2017 / 15:39
0
answers

How to use the user ID logged in angular2 and JWT?

I have this code in my service which is linked to a query on the server , the query uses a ID relative, this ID would be that of the logged-in user, but I do not know how to call the service and be able to use it. import { Injec...
asked by 05.06.2017 / 18:26
0
answers

Angular.io does not print my form

Good morning, I am creating a pure component to generate forms. The problem I have is that it generates the labels well but it shows me the HTML code instead of printing the input. This is my code: <div *ngFor="let i of cols" class="form...
asked by 12.06.2017 / 09:46