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