fix: use scope variables in the directive leading to digest loop

Fixes #30