Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
56 views

using service in different controllers files

Service - optionService.js controllers - app.js & welcomeCtrl.js & otherCtrl.js app.js var app = angular.module('mainapp', ['mainapp.welcome','optionServiceModule']); app.controller('...
Insane noise's user avatar
1 vote
1 answer
227 views

AngularJS controller not a function, get undefined

I've recently come into a strange problem with my Angular controller being undefined. It seems to not see the controller, even though another controller is working just fine (with all the same code). ...
Michael Myers's user avatar
1 vote
1 answer
180 views

retrieve value in controller when service is called and return the value that we receive from service to controller

Controller.js In contoller.js i have $scope.data.state which when has success from the service it should return state as $scope.data.state as booked but when i try to put alert in controller at the ...
user1493111's user avatar
0 votes
5 answers
835 views

AngularJS - On click not reaching controller method

I am learning Angularjs and Nodejs by developing a project. I have followed this tutorial and organised my folder structure and route configurations. Problem: I have added a method called ...
Amarnath's user avatar
  • 8,885