Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(isolateScope): unclear usage of element.scope() vs. element.isolateScope() #5274

@gesellix

Description

@gesellix

According to the docs at http://docs.angularjs.org/guide/scope one can retrieve the isolate scope of a directive by using angular.element(aDomElement).scope().
After 27e9340 being available in Angular 1.2.x there is another way of accessing the isolate scope by using angular.element(aDomElement).isolateScope().

I'm not sure where to add a hint for developers writing unit tests for their directives and trying to access the isolate scope, but I would prefer to at least mention the additional method in the migration guide.

Perhaps a section in the developer guide with focus on unit tests would help or could the function isolateSope() be regarded as common feature and as such be documented in the official guide for scopes?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions