On your controller’s method that handles the jsonp response: render :json => your_data_object_here.to_json, :callback => params[:callback]
The technique described here (more details in there): http://davidwalsh.name/detect-node-insertion It basically involves putting a CSS animation to the elements that will be attached in the future. When they get inserted, they run the animation, and when the animation finish running, it throws an “animationstarts” event. The last part involves attaching a listener to the parent […]
Add characters: spacebar, then choose from the list.
$scope $scope is what connects views and controllers. Most logic goes in the controllers. Controllers shouldn’t know what view they are operating on, their job is to produce a $scope (to keep dependencies light) The $scope can be considered a “quasi model”, it is the pure data variables and data objects that binds both the […]