Questions tagged as 'angularjs'

2
answers

Why when I reload the page does the 404 come out in angularjs?

I'm new to AngularJS and I'm learning how to do routing. I managed to correctly run the routing of several views on the same page without having to reload the main page, all right up there. My problem is already presented when I see that th...
asked by 06.04.2018 / 22:58
0
answers

POST http: // localhost: 3000 / product 500 (Internal Server Error) AngulaJS, Express, Node and Postgres

I need help to solve the following, I am making the connection to the BD, when I do a GET it works very well for me, but when I do a post, I get this error: POST http://localhost:3000/product 500 (Internal Server Error) I'm doing it this wa...
asked by 02.04.2018 / 04:39
0
answers

Problems consuming api rest with angular 5

I have this interceptor and I have a service Interceptor import {Observable} from 'rxjs/Observable'; import 'rxjs/add/operator/do'; import { Injectable } from '@angular/core'; import { HttpInterceptor, HttpRequest, HttpHandler, HttpSentEven...
asked by 31.03.2018 / 00:37
0
answers

Problems with angledown dropdown

I am trying to select a city depending on a certain country with AngularJS. PROBLEM: The problem is that when I select the country and then the city, the value of the country is erased from the input. Note: Do not delete the entire object u...
asked by 14.03.2018 / 17:49
1
answer

Synchronize attributes, angular component

I am using an "external" bower component (although I can modify it if necessary) to upload files to a server. This component when the upload completes notifies a method of my controller and establishes in the model an upload identifier. The issu...
asked by 13.03.2018 / 10:57
0
answers

how to send two data to an html file via socket.io?

the code with nodejs, I'm working with socket.io function onDato(dato){ io.sockets.emit('lectura', dato); } Here I show the code made with angularjs, if it shows me in html the data but as I am sending two at the same time nothing else show...
asked by 16.03.2018 / 00:16
1
answer

How to get the information in a select depending on what you have selected from another select?

I'm doing a crud of employees, in the employee creation form I have 2 select. The first selection is that of departments, therefore it displays, for example (Dpt. Audit, Informatics, Warehouse, etc). And the second select is that of posts, there...
asked by 02.03.2018 / 07:04
0
answers

make request to service in ajax using angular also

I try to consume it in the following way function listar( $scope, $http, cliente) { $http({ method: "POST", data: cliente, url: "http://ver.moz.com.mx/movil//Servicios.svc/getEstadosReferenciasPorClienteDetalle" + cliente+'500...
asked by 27.02.2018 / 23:39
0
answers

Change angle path without reloading views or controller

I am creating a web platform with angularjs and nodejs, I have a problem with the function of changing the language. Routing: $routeProvider .when('/:lang?/index', { templateUrl: 'modules/Home/HomeView.html', controller: 'HomeCt...
asked by 27.02.2018 / 15:42
1
answer

read a .json file in angularjs

Hi I need to read a json file in angular using a service, using the http service app.factory('Expenses', function($http){ var service = {}; service.entries = []; $http.get('data/get_all.json').then(function (data){ service.entr...
asked by 13.02.2018 / 17:05