Skip to content

Instantly share code, notes, and snippets.

@faloi
Created November 10, 2014 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faloi/c3412e167fac5812e670 to your computer and use it in GitHub Desktop.
Save faloi/c3412e167fac5812e670 to your computer and use it in GitHub Desktop.
observeOnScope $scope, "settings.parsimotionToken"
.filter ({newValue}) -> newValue?
.map ({newValue}) -> new Producteca newValue
.subscribe (producteca) ->
$scope.user = producteca.user()
$scope.priceLists = producteca.priceLists()
$scope.warehouses = producteca.warehouses()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment