0
votes
1answer
18 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
41 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
55 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
33 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
58 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
66 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
44 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
39 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
19 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. ...
0
votes
0answers
66 views

How to save some state into the URL as a query parameter

I'm using AngularJS 1.0.7, with ui-bootstrap 1.0.4. My application has a main navigation bar, and some pages have an extra level of tabs (using ui.bootstrap tabset and tab directives). What I'm ...
1
vote
0answers
63 views

Unit Testing an AngularJS Controller With CoffeeScript and Karma

I'm new to the concept of unit testing, and I'm trying to setup a simple test. The platform that I'm working on requires that all JavaScript be first written in CoffeeScript. I've read many examples ...
1
vote
1answer
140 views

MultiBar chart with nvd3 / d3 only shows labels for every other tick on the x-axis. How can I get them all to show up?

Data: nvd3TestData = [ { values:[ {x:"M",y:1}, {x:"T",y:2}, {x:"W",y:3}, {x:"R",y:3}, {x:"F",y:4}, {x:"S",y:5}, ...
2
votes
2answers
100 views

How to make directive re-render view in Angular?

I would like to truncate text dynamically, on each data change and each window's resize event. Lets's say I have a HTML: <p ng-truncate='lines: 2'> Lorem ipsum dolor...</p> My ...
0
votes
1answer
57 views

Angular js ng-repeat and directives

I have a list of items that can be starred. The buttons to archive, delete and star pop up on hover. However, if the item is starred, the star does not fade out but remains visible. I have created ...
0
votes
1answer
74 views

AngularJS: Retrieve newly created Record Id in CoffeeScript

To create a new record added from a form in AngularJS, I have: task = Task.save($scope.newTask) But I need to also retrieve the new id that was created upon save. The answer found here: Not getting ...
1
vote
1answer
229 views

Testing AngularJS controllers with resource services

Background: I'm writing unit test for angular js controllers, which utilize angular $resources wrapped in services (for maintainability purposes). Example controller: name = ...
2
votes
2answers
595 views

Can I use Typescript classes as AngularJS controllers using the new 'controller as' syntax

I'm working on a web app using AngularJS and Typescript and I'm trying to find the best way to take advantage of Typescript when it comes to defining controllers. Intuitively a controller would just ...
0
votes
1answer
169 views

AngularJS $http.jsonp cache

I am having trouble caching a JSONP request. I have tried $http.jsonp(url, { cache: true }) and it doesn't appear to be working. I also tried $http({ method: 'JSONP', url: url, cache: true }) to no ...
4
votes
1answer
121 views

angularjs - HTTPpromise does not execute when JSONP is returned

I am trying to get a stock quote from yahoo's api and I am using angular's $http.jsonp method. The goal is when the result comes back, to have the app go to the this route: '/stocks/show_stock'. I am ...
0
votes
0answers
80 views

Angular Directives: I have to call $apply twice?

Here's the deal. I have a page where you just edit a user. It has basic inputs and everything. I then created a directive to handle uploading of images through ajax: angular.module('fileDirectives', ...
0
votes
2answers
53 views

Need help identifying this code [closed]

What is this written in, and how can I convert it to HTML? http://pastebin.com/ePPXkhMP I need to edit it, but not sure how to convert it to HTML. I need to style it, but not sure how to start. ...
0
votes
1answer
86 views

ng-show is not working within HAML template on Internet Explorer 7

I have the following minimum failure case: %span.add-on - if planned_date.blank? %i.icon-calendar - else if successful %i.icon-calendar.foo ...
1
vote
1answer
520 views

Angular - Event for ng-hide and ng-show

I'd like to watch my hide and show expressions on all elements in my app. I know I can do it by wrapping the show directive with a function which just returns the argument: <div ...
0
votes
0answers
250 views

Angular + CoffeeScript JS fiddle errors

This JavaScript JSFiddle works -> http://jsfiddle.net/franklovecchio/E3YEt/ This CoffeeScript JSFiddle does not work -> http://jsfiddle.net/franklovecchio/E3YEt/230/ Appending ...
0
votes
1answer
362 views

How do I mix links that trigger page refreshes, with Angular's html5Mode = true without breaking the back button?

I'll walk through the problematic flow... I load google.com (just as a starting point) I goto app.com I nav to app.com/projects I nav to app.com/api/test (through window.location) I see the raw JSON ...
1
vote
1answer
439 views

Binding Angular.js actions to Ruby on Rails actions

I've been using rails a while and am starting to fiddle around with integrating Angular.js. To get myself going, I'm making a simple (you guessed it) todo app. In my rails controller, I've made a ...
1
vote
1answer
509 views

AngularJS: accessing scope in $resource factory definition

I'm running an AngularJS app that incorporates Pusher for real-time updates of models. I'd like to trigger an action in a scope when pusher sends updated data for an AngularJS resource in the factory ...
5
votes
2answers
752 views

Angular UI: Unknown provider: dialogProvider

I am trying to replicate the following Angular UI example of a simple dialog with a close-button. https://github.com/angular-ui/bootstrap/blob/master/src/dialog/README.md. However, I cannot get the ...
0
votes
1answer
508 views

Angularjs data binding with a data attribute object

I have some json attached to a data attribute on a page. The json data is used to build a table in angularjs. I'm using coffeescript and haml. app = angular.module("myApp", []) ...
0
votes
1answer
406 views

AngularJS routeProvider not adding hash at the end of URL

I have the following routeProvider configured: angular.module('myModule').config ['$routeProvider', (provider) -> provider .when '', templateUrl: '/templates/dashboard.html' .when ...

1 2 3
15 30 50 per page