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.

Transclusion fallback content with ng-if/ng-repeat cause js exception #14653

Closed
@peterreisz

Description

@peterreisz

In case I want to use directives which modifies the DOM structure (ng-if/ng-repeat) in the fallback content of the transclusion and I give another content when using the component, I've got an javascript exception, though the component seems working.

Angular version: 1.5.5
Plunkr: https://plnkr.co/edit/A4nxJDDy8OUBPc6hiVqq?p=info

angular.js:13550 TypeError: Cannot read property 'insertBefore' of null
    at forEach.after (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:3603:13)
    at Object.JQLite.(anonymous function) [as after] (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:3687:17)
    at domInsert (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:5229:35)
    at Object.enter (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:5397:9)
    at https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:25542:26
    at publicLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:8276:29)
    at lazyCompilation (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:8615:25)
    at boundTranscludeFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:8414:16)
    at controllersBoundTransclude (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:9143:20)
    at ngIfWatchAction (https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.js:25533:15)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions