create custom scopes if defined via `data-scope` or on a directive