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.

Isolate scope not working without templateUrl/template #13556

Closed
@llafuente

Description

@llafuente

Affect all versions, I can't find any issue related.

Test: http://plnkr.co/edit/x51ohRcoM8uCuaHpIloB?p=preview
To toogle the error go to script, un/comment line 34

The following directive, do not create a isolated scope

.directive('isolateEmpty', function() {
  return {
    restrict: 'EA',
    scope: {},
    link: function($scope, element, attrs) {}
  };
})

But this one will create the scope as expected.

.directive('isolateEmpty', function() {
  return {
    restrict: 'EA',
    scope: {},
    templateUrl: "xxx.html",
    link: function($scope, element, attrs) {}
  };
})

I try to test the other scope combo (true/false) but i'm not sure if it's working... Can't find a proper test...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions