Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // RPC stub injection via Snappi
  2. exports.$inject = ['calculator'];
  3.  
  4. exports.init = function(calculator) {
  5.  
  6. // calculator is an RPC stub referencing a remote service to
  7. // perform the operation
  8. calculator.add(4, 5)
  9. .then(function(result) {
  10. console.log(result); // Logs the value `9`
  11. });
  12.  
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement