@Ankur Bawiskar 

That might have been the issue. My client controller begins with the following: 

api.controller = function() {
    var c = this;