1
vote
1answer
24 views
Communicating events from a service to a controller in Angular
I have an audio element in my service that has a "ended" event listener. I'm trying to communicate that message to an angular controller.
Currently I have this in my service:
Audio.addEventListener ...
0
votes
1answer
42 views
Angular with Coffescript not working
My prefered development environment is straight coffeescript and this has treated me well until I started getting into AngularJS. For some reason my current setup will not run correctly with ...
0
votes
2answers
46 views
AngularJS conditional ng-disabled does not re-enable
Given a conditionally disabled text input field using ng-disabled="truthy_scope_variable", AngularJS disables the field the first time the scope variable is falsified, but does not enable it on ...
0
votes
2answers
41 views
How to properly define services, factories, directories, and controllers using CoffeeScript
I'm still new in AngularJS and I just wondering how to properly define services, factories, directories and controllers using CoffeeScript syntax.
Some example with description and explanation "why ...
1
vote
1answer
124 views
+50
Angular resource call not fired when called from $scope.$watch
I created a directive that watches for a day attribute and retrieves a remote resource whenever the attribute value changes. CoffeeScript code :
angular.module('app.directives').directive ...
0
votes
1answer
63 views
How do display json data in view using Angular
I am learning Angularjs and trying to implement it in my C# web MVC application for the first time.
I am unable to get json format data returned from my controller to display in my view which uses ...
0
votes
1answer
21 views
Getting “c.instantiate {}” returned as object when referencing a service
I created a geo location service:
angular.module('App')
.service('Geo', ['$http', ($http) ->
apiUrl = 'http://freegeoip.net/json'
getData = ->
$http.get(apiUrl)
...
0
votes
0answers
122 views
Using Karma-runner with AngularJS, Jasmine, CoffeScript
My app besides jRuby/Rails uses AngularJS, CoffeScript. I'd like to test my javascript with Jasmine and run it with Karma (aka Testacular), but I get an error stating that my Angular module is nowhere ...
0
votes
1answer
117 views
Update Common AngularJS HTTP Headers at Runtime
How can I update the common HTTP headers at runtime from an AngularJS controller, e.g. $httpProvider.defaults.headers.common['Authorization']? It seems $httpProvider can only be accessed from a config ...
0
votes
1answer
55 views
Hide/show particular element on click with AngularJS
I have an HTML table with many rows in it and want to hide a row when the user clicks the delete button for that particular row. I'm having trouble doing it with Angular and the ng-hide directive.
...
2
votes
2answers
102 views
Why do I need to angular.bootstrap even when I declare ng-app=“MyApp” in JSFiddle
I do not truly understand why it is necessary to do an angular.bootsrap document, ['MyApp'] at the end of my CoffeeScript code that manages the module and controllers in the following test ...
1
vote
1answer
476 views
Angular JS + CoffeeScript + JSFiddle: Code not working
I started playing around with CoffeeScript and AngularJS today and noticed that there is not a whole lot of documentation or examples on how to correctly write AngularJS using CoffeeScript. My own ...
0
votes
1answer
72 views
AngularJS/Parse.com : $scope.currentUser variable not updated
I'm using parse with angularjs to authenticate users. Here is the login function.
$scope.doLogin = ->
Parse.User.logIn $scope.currentUser.username, $scope.currentUser.password,
...
0
votes
0answers
55 views
AngularJS $rootScope magic
Jade code:
This code connected via ng-include
.ui-drop-panel(drop-zone, drop-event="onDrop:pdf")
.ui-drop-content
// TODO add button and text
.ui-upload-panel
.progress
...
0
votes
0answers
25 views
SbtIdeaPlugin No mapping for js in custom build in Play 2
I'm getting the following exception when I run the "web" module of my project https://github.com/jeffmay/angular-play-multimodule-seed/commits?author=jeffmay and I don't understand why.
...