Skip to content

Tabs: don't transclude content initially to check for nav-view #730

@ajoslin

Description

@ajoslin

How we we find out if there's a nav-view in the tabs is to transclude the content initially, but do nothing with it. This could have side effects that we aren't prepared to deal with (eg creating a controller for a moment could set a variable or basically anything).

It also causes this error:

TypeError: Object #<Comment> has no method 'setAttribute'
    at forEach.attr (http://code.ionicframework.com/nightly/js/angular/angular.js:2462:15)
    at Object.JQLite.(anonymous function) [as attr] (http://code.ionicframework.com/nightly/js/angular/angular.js:2569:9)
    at Object.Attributes.$set (http://code.ionicframework.com/nightly/js/angular/angular.js:5430:28)
    at Object.interpolateFnWatchAction [as fn] (http://code.ionicframework.com/nightly/js/angular/angular.js:6534:28)
    at Scope.$digest (http://code.ionicframework.com/nightly/js/angular/angular.js:11802:29)
    at Scope.$apply (http://code.ionicframework.com/nightly/js/angular/angular.js:12055:24)
    at http://code.ionicframework.com/nightly/js/angular/angular.js:1301:15
    at Object.invoke (http://code.ionicframework.com/nightly/js/angular/angular.js:3704:17)
    at doBootstrap (http://code.ionicframework.com/nightly/js/angular/angular.js:1299:14)
    at bootstrap (http://code.ionicframework.com/nightly/js/angular/angular.js:1313:12)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions