updateParams needs to be called in a digest cycle