use scope from directive instead of element.scope() because
the later one might return the parent scope instead