Questions tagged as 'angularjs'

1
answer

Registration of MySQL records with NodeJS (Backend) that does not enter "Success" and hangs. That could be happening?

I expose the code to see if someone can help me HTML code with the button that calls the function: <div id="btn_crearcurs" class="btn_curs"> <a class="btn btn-warning btn-lg btn-block" ng-click="crearCursos()">Crear...
asked by 16.08.2017 / 08:56
1
answer

Error uploading images with angularjs

When uploading an image using ng-file-upload , it is uploaded correctly but what I want to do is send more data along with the image this is my code: $scope.crear_registro= function(){ $scope.datos_usuario = ( { "username":...
asked by 14.07.2017 / 17:29
1
answer

use nested $ http requests angular 1

Hello good morning I have a project with Ionic 1 where I have to make different queries and many requests in a single click (when synchronizing) where I get a list of people first and the result I get I am consulted all your data and at t...
asked by 14.07.2017 / 17:01
1
answer

Connection refused when I made a request $ http Post with angular JS

I have an application using Angular JS. At the time of making a request to the backend that I have in PHP. It throws me the following error. The error only appears when I use the application from another device that is not the server....
asked by 10.07.2017 / 18:23
1
answer

Error showing image preview in angularjs with css

I am working with ng-file-upload to work with images. In if I have two options to upload an image for each one. When I show the first image it is shown in my first ng-model but when I show my second image in my second ng-model it is not shown bu...
asked by 26.07.2017 / 07:48
0
answers

Error 400 (Bad Request) when using ng-include - AngularJS

Colleagues, I have a problem using the ng-include directive; my idea is to load one view or another depending on the value of a particular $scope : <div ng-switch on="itemSelected[0].label"> <div ng-switch-when="Empres...
asked by 11.07.2017 / 18:46
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
1
answer

Implement correctly Angular ui-bootstrap date picker

I just integrated the datepicker into a project but it does not work correctly. HTML <div class="form-group"> <label>Date</label> <p class="input-group"> <input typ...
asked by 08.07.2017 / 00:45
0
answers

Unexpected token in JSON at position at JSON.parse (anonymous)

angular.module('app.controllers', []) .controller('AuthLoginCtrl', ['$scope', 'restApi', '$state', 'auth', function ($scope, restApi, $state, auth) { $scope.ingresar = function () { restApi.call({...
asked by 02.07.2017 / 05:17
0
answers

No users subscribe to OneSignal with android versions 5 or higher

I am integrating notifications-push in my hybrid application developed in Ionic v1, but I have contracted with a slightly strange problem, and that is that users with android version 5 or higher are not are subscribing to the OneSignal platf...
asked by 01.07.2017 / 20:03