intertwingly

It’s just data

Angular.rb example


Tim Bray: If hating this is wrong, I don’t want to be right.

Perhaps you would like this better?  :-)

module Angular::X

  controller :LoginController do
    @credentials = {username: '', password: ''}

    def login(credentials)
      AuthService.login(credentials).then {
        broadcast! AUTH_EVENTS.loginSuccess
      }.catch {
        broadcast! AUTH_EVENTS.loginFailure
      }
    end
  end

end

Try it here.

Things to note:

More examples, from deployed code: roster, agenda.

This will be the covered by my ApacheCon talk.