Skip to main content
Shape the future of the Stack Exchange API - get early access to what’s new!

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

Service and Controller to call api with a value in the end of api

I have a service call that I want to pass a value into the function to call the http.get api by id: /home/api/order/1 My service looks like this: angular.module("app") .factory('Service', ['$http', ...
enavuio's user avatar
  • 1,500
0 votes
1 answer
158 views

Capture value whenever is-open (view) is changed in angular controllers

view.html <uib-accordion-group heading="Header" is-open="$parent.accordionOpen" ng-click="headerClick()"> app.js myApp.controller('Controller', ['$scope', function($scope) { $scope....
Mad-D's user avatar
  • 4,709
0 votes
3 answers
1k views

Angular Scope Not Printing Variables

I have an angular factory and controller as such: angular.module('myApp', ['ui.router', 'ngResource']) .factory('Widget', ['$http', function WidgetFactory($http) { return { all: function()...
gh0st's user avatar
  • 1,731
3 votes
2 answers
6k views

How to know from controller if http.post().then... was successful?

I have a controller which uses the following line to post data to server through a factory called SendDataFactory: SendDataFactory.sendToWebService(dataToSend) And my factory SendDataFactory looks ...
CommonSenseCode's user avatar