Questions tagged as 'angularjs-services'

1
answer

Integrating HTML + Node.js with Angular.js in "Real Time"

I have some issues with automatically updating a code in Angular.js inside my site. The integration is Node.js with HTML, integrating with Angular.js. However I have to always give F5 on the page so it updates the variable "Temperature". I would...
asked by 03.10.2016 / 21:04
1
answer

Doubt on angular services

A clue please, if I have a service ServiceY and this service has a ServiceY.nome attribute. In the same screen I have four controller , being: controller_A , controller_B , controller_C and controller_D an...
asked by 16.05.2017 / 14:40
1
answer

Angle function does not load in time?

When I try to use the following code in a website template: <img src="{{getImage(estabelecimento)}}"> The image loads correctly, but before loading this error appears in the console:    GET link 404   (Not Found) Everything l...
asked by 14.09.2017 / 08:40
2
answers

How to solve this error correctly?

Error: [$injector:unpr] http://errors.angularjs.org/1.4.5/$injector/unpr?p0=%24scopeProvider%20%3C-%20%24scope%20%3C-%20LogUserService at Error (native) at http://localhost:8080/web/resources/js/angular/angular.min.js:6:416 at http://localhost:80...
asked by 14.10.2015 / 16:43
3
answers

Pass value to service factory in angularjs

I need to pass two values (page and total) of $ scope that are in the controller to a service factory, how do I? Is there any good practice to do this? Service: angular.module("myapp").factory("AtividadesAPI", function ($http, config) {...
asked by 10.11.2016 / 20:07
2
answers

Reading json file via AngularJs service

I'm trying to read a Json file via a service I created: Service: App.factory('service', function($http) { var promise; get: function() { if (!promise) { promise = $http.get('../library/data_json....
asked by 02.02.2016 / 14:19
1
answer

How to sort by several fields with Ionic and / or AngularJS of a JSON?

I'm trying to sort fields dynamically by Ionic and AngularJs. I started by using the Modal Select plugin with the button like this: <button class="button button-stable button-block icon-left ion-android-restaurant" modal-select="" ng-mode...
asked by 07.04.2017 / 14:51
2
answers

How to retrieve the value of the return boolean of a REST service in Angularjs?

I have a Java / Jersey service that returns a Boolean pro for AngularJs. In my controller, I get the value of the return from the promise, but it returns me an Object. In other cases, as a return from a User entity, for example, it works fine, b...
asked by 06.11.2015 / 02:00
0
answers

Initialize some user parameters using angularjs and Google Cloud Endpoints

I'm trying to initialize some user parameters using AngularJs and google cloud endpoints. Through an endpoint getProfile, I need to get the user information like photo, description, age to display on the screen. I can make a call of this type us...
asked by 10.09.2016 / 05:27
1
answer

AngularJS consume RESTful in different domains

Good afternoon, I'm trying to make a client that indexes the information of several webservices (about bitcoin quotes from several brokers), but when trying to access the webservice the imported json values are not displayed, and pressing F12 in...
asked by 09.12.2015 / 17:30