The connection between this section here and the popup below (using the `isMeasureActive` variable) will break when an controller is inserted in the hierarchy between this level and the level of the popup. The controller scope will shadow the `isMeasureActive` variable of the popup section.

To make it more robust, it would make sense to add this variable to an existing object of the rootscope (using something like `options.isMeasureActive`.