rpc-controller directive added to angular client