Tagged Questions
0
votes
1answer
69 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
70 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
45 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
53 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
362 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
186 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
149 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
191 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
82 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
267 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">
...
0
votes
1answer
130 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
215 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
184 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>
...
0
votes
1answer
90 views
angularjs synchronise $request to update database before $request.query() is fired on index view
My index view is pulling all the models from database before the update is carried out is there any way to make sure these actions are synchronised. the model is updated and shows up in index page ...
0
votes
2answers
428 views
Angularjs dependency injection in resolve
I would like to use proper dependency injection in MyCtrl1to inject the fields of the MyCtrl1.resolve object. I've tried many different combinations of attempting to inject @MyCtrl1.resolve etc. with ...