Most voted "angularjs-services" questions
29 questions
Sort by count of
-
5
votes2
answers16831
viewsNullinjector error: No Provider for
I’m getting this error message: ERROR Error: StaticInjectorError[CervejaService]: StaticInjectorError[CervejaService]: NullInjectorError: No provider for CervejaService! at _NullInjector.get…
-
4
votes1
answer858
viewsIntegrating HTML + Node.js with Angular.js in "Real Time"
I’m having some problems automatically updating a code in Angular.js within my site. The integration is Node.js with HTML, integrating with Angular.js. But I always have to give F5 on the page for…
-
3
votes2
answers171
viewsHow to fix 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…
-
3
votes1
answer44
viewsAngular 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 on the console: GET…
-
3
votes1
answer77
viewsDoubt about services Angularjs
A tip please if I have a service ServiceY and this service has an attribute ServiceY.nome. On the same screen I have four controller, being: controller_A, controller_B, controller_C and controller_D…
-
2
votes2
answers812
viewsHow to recover the value of Boolean from a REST service in Angularjs?
I have a Java/Jersey service that returns a Boolean pro Angularjs. In my controller, I take the value of the return of the Promise, but it returns me an Object. In other cases, such as a return of…
-
2
votes2
answers846
viewsReading json file via Angularjs service
I am trying to read a Json file via a service I created: Service: App.factory('service', function($http) { var promise; get: function() { if (!promise) { promise =…
-
2
votes0
answers25
viewsInitialize some user parameters using Angularjs and Google Cloud Endpoints
I am trying to initialize some user parameters using Angularjs and google cloud endpoints. Through a getProfile endpoint, I need to get user information like photo, description, age to show on…
angularjs angularjs-directives google-app-engine angularjs-servicesasked 8 years, 2 months ago Filipe Rebollo 43 -
2
votes3
answers1003
viewsPass value to service Factory in Engineering
I need to pass two values (page and total) of $Scope that are in the controller to a Factory service, how do I? Is there any good practice to do this? Service:…
-
2
votes2
answers739
viewsHow to ensure that a ngOnInit-dependent function is executed after it?
I have a class that when booting retrieves data from a service and popular one of its attributes, which is a array. This class has a function that sorts this array, filter and return the result.…
-
2
votes1
answer676
viewsHow to sort across multiple fields with Ionic and/or Angularjs from a JSON?
I’m trying to sort fields dynamically by Ionic and Angularjs. I started using the plugin Modal Select, with the button like this: <button class="button button-stable button-block icon-left…
-
1
votes1
answer487
viewsAngularjs consume Restful in different domains
Good afternoon, I am trying to make a client that indexes the information of various webservices (on bitcoin quotes from various brokers) but when trying to access the webservice the values imported…
-
1
votes1
answer60
viewsDoubt in Angularjs! (Factory, Controller, View) Why is 'Identity' not updated in the VIEW?
Guys I’m having a doubt in Angularjs! The source code is in https://plnkr.co/edit/BoIr6nFCa8ST5ekT3DZO In Factory I have a property with the name identity, which is mirrored to the controller and…
javascript angularjs angularjs-services angularjs-factorysasked 8 years, 10 months ago Lucas Boeing Scarduelli 306 -
1
votes3
answers1544
viewsHTTP post in Angular
I am trying to access a web service that receives in Header "Device" and in Body "User and Password", it returns me json in this format: { "IdUsuario": 2, "Usuario": "Fulanu", "Token": "1f7b87d7" }…
-
1
votes1
answer231
viewsHow to clear a service at the end of your use Ionic / Angularjs
I have a service that is so: angular.module('nhaac.services', []) .factory('sharedCartService', ['$ionicPopup',function($ionicPopup){ // OKAY, MAS ONDE ELE ESTÁ PEGANDO? // DECLARA AS VARIÁVEIS var…
-
1
votes2
answers3187
viewsSensitive and global variables Ionic 3 and angular 4
I have some sensitive variables, and the ideal would be to leave all the variables in one environment, when it is necessary to change, for example from production to development, this task becomes…
-
1
votes1
answer28
viewsvalue passed via Service is not being updated in the second controller
I looked for how to share a Scope between two controllers, and I saw that one option would be service or a Factory using the Singleton standard, but I’ve tried both and what happens is that I can’t…
-
1
votes1
answer644
viewsUnit Service Testing Using Karma (typescript/angular)
I’m trying to test a service GET method: get(url: string, params?: any): Observable<Response> { let options = {}; this.securityService.setHeaders(options); if (params) this.setParams(options,…
-
0
votes1
answer2187
viewsAngularjs - Unknown Provider
I am trying to create a Service in Angularjs but the error is occurring: Error: [$injector:unpr] Unknown Provider: $scopeProvider <- $Scope <- Orderservice I tried everything to fix, I stopped…
-
0
votes1
answer1230
viewsHow to know what the current $Location is
How do I validate when there is a change on the screen and the user clicks another hyperlink to exit the screen, the same can not allow. Is there any ready angular function that performs this check?…
-
0
votes1
answer347
viewsError calling REST with Angularjs
I’m using the angular $http to make REST calls on my server, but I’m having a problem: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not…
-
0
votes1
answer460
viewsMessage appears in modal and page at the same time
I created a "message center" in Angularjs that injects messages on the screen. The message always appears when an error occurs in REST operations or success. This is done by an Interceptor that…
javascript angularjs angularjs-directives angularjs-servicesasked 8 years, 8 months ago adelmo00 1,904 -
0
votes0
answers44
viewsserver does not return data I send with angular2
the code of the Component onSubmit(form){ var success = false; var error = false; this.http.post(`http://localhost/api/`, JSON.stringify(form.value)) .map(res => res) .subscribe(dados =>…
-
0
votes0
answers390
viewsUsing angular and Ionic, how do I traverse a vector by summing a variable of an object?
I have a vector of objects with prices, product name..., after the customer has clicked on a product I pass it to another list, of orders, after being done this need to make me add up the prices of…
-
0
votes2
answers681
viewsError in injection of angular module dependencies
I have the module of my application: angular.module('app', ['app.controllers','app.routes','app.services']); I have my service module: angular.app('app.services', []) .factory('usuarioService',…
angularjs dependency-injection angularjs-services angularjs-factorysasked 8 years, 6 months ago Walter Gandarella 636 -
0
votes1
answer182
viewsView results from a search in the same View Angularjs
I’m developing an app to be able to study and, I was assembling everything in the controller, all the queries and everything. Only then I decided to pass everything to a service(I saw that it is…
-
0
votes4
answers2324
viewsAngular 7 - Popular object on return of API service. httpClient
Thanks in advance for your attention. I am having difficulty popular an object list returned from an API in Angular 7. My service class is returning the service data, but I can’t get popular in my…
typescript services angular-6 angularjs-services httpclientasked 5 years, 11 months ago Bruno Leite 105 -
-1
votes2
answers146
viewsHow to install Provider ?? Ionic 4
I can not at all install this Provider , it asks to generate a 'service' and even after generating the service it gives the same error!!!]1…
-
-1
votes1
answer513
viewsSend image via POST in English
HELP. I am trying to send an image to a web service via POST. no Postman tested and worked in my controller I did so $scope.upload = function (files) { var fd = new FormData(); fd.append('imagem',…