All Questions
Tagged with angular-controller angularjs-service
4 questions
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', ...
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....
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()...
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 ...