1
vote
1answer
24 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
38 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
29 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
38 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
0answers
74 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
183 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
62 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
80 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
58 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
53 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
307 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
223 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
233 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
312 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 2 3 4 5
15 30 50 per page