Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // RPC stub injection via Snappi
- exports.$inject = ['calculator'];
- exports.init = function(calculator) {
- // calculator is an RPC stub referencing a remote service to
- // perform the operation
- calculator.add(4, 5)
- .then(function(result) {
- console.log(result); // Logs the value `9`
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement