• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Angular for rubyists
 

Angular for rubyists

on

  • 231 views

A lightening talk (20 slides that show for 20 seconds each) about AngularJS. Talk is here: https://skillsmatter.com/skillscasts/5052-angularjs-for-rubyists

A lightening talk (20 slides that show for 20 seconds each) about AngularJS. Talk is here: https://skillsmatter.com/skillscasts/5052-angularjs-for-rubyists

Statistics

Views

Total Views
231
Views on SlideShare
230
Embed Views
1

Actions

Likes
1
Downloads
0
Comments
0

1 Embed 1

http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Angular for rubyists Angular for rubyists Presentation Transcript

    • AngularJS for Rubyists It’s like sinatra but for clients Tom Cartwright @tomcartwrightuk ! keepmebooked.com tomcartwright.net
    • Framework or library? Library Framework Backbone Angular It has conventions (well sort of) Ember
    • Rails setup config/routes.rb app/controllers/angular_controller.rb app/views/angular/app.html.erb This blank template is needed to stop rails freaking out - there is almost certainly a better way of handling this.
    • Define an app
    • Setup some routing app/assets/javascripts/app/app.js
    • …and a controller app/assets/javascripts/app/controllers.js
    • A rendered page
    • As if by magic …some binding occurs …but how?
    • Dirty checking Check $scopes and copy Check again against the copies Repaint DOM if required
    • Server communication
    • $resource service app/assets/javascripts/app/resources.js
    • Err.. no
    • app/assets/javascripts/app/resources.js app/assets/javascripts/app/controllers.js
    • Promises
    • Testing For unit testing - use Jasmine
    • spec/javascripts/controller…/dashboardControllerSpec.js
    • spec/javascripts/controller…/dashboardControllerSpec.js Huzzah!
    • Directives
    • The API is doesn’t have to be the source of truth
    • Thank you $watching $scope.$watch('forQuestions', ! function(silence, question) {! console.log(possibleEruditeResponse);! }! }); Github ・Twitter @tomcartwrightuk Like the sound of this AngularJS stuff? Keepmebooked is hiring