Questions tagged as 'angularjs-2.0'

2
answers

consume web service echo in java with angle 2? [closed]

Good I am beginning with the web service, create one in java, which I want to connect with angular2, but it throws me an error.     
asked by 15.04.2017 / 01:03
1
answer

Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response .. Angular 2

I'm starting this in Angular 2 and what I want is to interrogate a rest API with Angular 2 Typescript, using Angular-cli, so I created a service a model and a component to interrogate the api.    Component import { Component, OnInit } from...
asked by 05.02.2018 / 23:19
1
answer

Validate field depending on the value of another Angular

I request your collaboration to indicate how I can validate a text field that depends on the selected value in a Radio button; really what I need is to activate the observations field only if option 4 is selected, but the form shows it as invali...
asked by 02.10.2017 / 04:17
2
answers

How to have two different side menus in two different pages with Ionic 2?

I'm making an application where in the root you should have a side menu with 3 buttons, and when doing a navCtrl.push() , in the second page you should have another side menu other than the page root H...
asked by 01.09.2017 / 06:23
1
answer

How is the ionic [style] directive used?

I once read in a documentation that you could use an ionic or angular style directive, I do not remember well, I just remember that it was like this: [style.width]='expresión' and I can not find the documentation, does anyone know how to...
asked by 23.09.2017 / 01:48
1
answer

How do I implement Passport in angular 2.0 and nodeJs?

I ask this question, because I already made some application with authentication with these technologies: MongoDb, Angular, NodeJs and Express. The fact is that I have been researching about Passport, but I can not implement it in nodeJs at all,...
asked by 22.08.2017 / 16:19
2
answers

How can I get the date of a datepicker using angular 2?

I have a datepicker and I need to get the date to save it but I have no idea how to do it, if someone can, I attach the plugin code <div class="col-md-4"> <div class="form-group"> &...
asked by 18.07.2017 / 17:10
2
answers

How to pass parameters in headers - Headers Angular 4?

Angular 4 Greetings community, I'm trying to pass some parameters by the headers in a post request but it generates an error, it tells me that it is not sending the parameters in the headers, does anyone know what I'm doing wrong? registerH...
asked by 03.08.2017 / 15:37
1
answer

When compiling for Angularjs4, the page stays in "Loading ..." with "ng build --prod"

I'm learning Angularjs4, while I'm trying code everything is fine, that is, executing    ng serve The problem arises when I try to compile the project for production, the sentence that I execute is the following    ng build --prod...
asked by 01.08.2017 / 07:21
1
answer

Change color of an ionic button 2

I am trying to change the color of a button when it is clicked, I have managed to change all the buttons but I can not get it to only change the one I click. .html <ion-content padding> <button #button1 [color]="myColor" ion-but...
asked by 12.06.2017 / 23:23