Skip to content

Instantly share code, notes, and snippets.

@nsanta
Created November 2, 2012 00:09
Show Gist options
  • Select an option

  • Save nsanta/3997766 to your computer and use it in GitHub Desktop.

Select an option

Save nsanta/3997766 to your computer and use it in GitHub Desktop.
angular timeline blog post gists one
# Session is a resource
@SessionCtrl = ($scope, $location, Session) →
$scope.login = →
Session.save $scope.session , (response) →
$location.path “/dashboard”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment