0
votes
0answers
17 views

Why can I successfully define a factory on my app module but not my injected module?

I'm trying to figure out why this alerts: # Main App @App = angular.module('BlinkApp', ['appData']).factory 'Data', -> alert "Hello" # Modules appData = angular.module('appData', []) # ...
0
votes
1answer
23 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
137 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
106 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 ...
0
votes
1answer
54 views

Angularjs accessing methods in another factory

I've got an AngularJS model in which I've created a module called myService to hold some commonly used code which I use throughout my application. My Common factory is where I've been adding all my ...
0
votes
1answer
54 views

Data doesn't bind when submitting form

When I refresh the page the correct values come up. I want the list of 'gists' to automatically update when the form is submitted. The global @todone is set that way because I receive an undefined ...
0
votes
1answer
425 views

Accessing JSON Data with AngularJS and Twitter Streaming API

To start, I am working on my tweetganic app that needs to access the twitter streaming API, client side, and manage the results via AngularJS. This is my Coffeescript/JS: @AccountCtrl = ["$scope", ...
0
votes
1answer
237 views

How can I pass parameters into an Angular $resource factory?

I'm trying to use $scope.lat and $scope.lng in my $resource Venue object, so that REST communication will always be in the context of a location. I can't tell if they are being passed in under ...
1
vote
2answers
176 views

AngularJS toggling ngShow for all entries

For each 'entry in entries', I have a button the toggles ng-show to true and displays details about the entry. Currently, this code toggles every entry to ng-show=true. I want each button to only ...
0
votes
1answer
206 views

AngularJS, multiple draggable items causes 'jump' on initial move

I am using the example code located on the AngularJS main site. When I move the first draggable object, all is well. As soon as I begin dragging a second object, the second object 'jumps' exactly the ...
1
vote
1answer
102 views

ngMock fails to recognize request

I've got the following specs wrapped around a controller. I've got the following Jasmine Spec: describe 'MyApp.Controller.SomeController', -> beforeEach module('mymodule') beforeEach inject ...
0
votes
2answers
272 views

Displaying database entries in Rails 4 with AngularJS

I want to display my database entries. Angular repeats list items but doesn't display any values. The entries database has a title column. View: <div ng-controller="EntryCtrl"> ...
1
vote
2answers
148 views

Angularjs custom form control scope is duplicated

I have created a simple angularjs directive to input city and zip codes. It works fine except that if I used it twice within the same controller the values in the input field are duplicated! I believe ...
0
votes
1answer
237 views

Submitting Form with Angularjs-rails throws error because of Angular Resource

When the page loads, the resource throws a 404 because the $resource is reading nil for :city_id. I am beginning with angularjs so any clarification is appreciated. The form entries fail to persist ...
1
vote
2answers
224 views

Angular app wont load (JSFiddle)

I have a simple angular app here <div ng-app="WhereToMeet" ng-controller="MapCtrl"> <leaflet shape="shape"></leaflet> <button ng-click="clicked()">Clicked</button> ...

1 2 3 4
15 30 50 per page