Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

use pre-link function in tabset instead of post-link #1171

Closed
wants to merge 1 commit into from
Closed

use pre-link function in tabset instead of post-link #1171

wants to merge 1 commit into from

Conversation

daa
Copy link

@daa daa commented Oct 16, 2013

Now controller's attributes $scope and $transcludeFn used in tabsetTitles post-link are surely initialized.

I had issue similar to #783 using tabs inside of ng-if directive - tabsetTitles postlink function ran before tabset link function, so i moved tabset link to pre-link and with angular-1.2.0-rc.3 it worked. But it can't work with earlier angular versions because of angular/angular.js#3927 - before this commit pre-link functions received undefined instead of directive controller.

plunker with problem:
http://plnkr.co/edit/MoRweJ?p=preview

plunker with fix:
http://plnkr.co/edit/D3n45R?p=preview

…ler's attributes used in tabsetTitles post-link are surely initialized
@mikz
Copy link

mikz commented Oct 16, 2013

I'm testing this patch and looks like it works without problems. Cheers!

@francho
Copy link

francho commented Oct 18, 2013

It works for me too

@pkozlowski-opensource
Copy link
Member

@daa I would love to merge this but, as noted, it doesn't work on the current AngularJS stable :-(

@mikz
Copy link

mikz commented Oct 18, 2013

@pkozlowski-opensource what about creating branch ready for 1.2 release?

@daa
Copy link
Author

daa commented Oct 18, 2013

ok. I think it can wait until angular-1.2 stable release.

@abottoni
Copy link

Hi @pkozlowski-opensource . I have checked the fix made by @daa and using the stable release of Angular JS 1.2, now the error I had in my application (Issue #783) is gone (which is very good). The question I have to you is, is it now a good time to merge the change to a new version of the angular-ui bootstrap? Thanks !

@arunkjn
Copy link

arunkjn commented Dec 2, 2013

+1 I am also waiting for this to be merged.

@taland
Copy link

taland commented Dec 4, 2013

+1

1 similar comment
@filso
Copy link
Contributor

filso commented Dec 5, 2013

+1

@pkozlowski-opensource
Copy link
Member

We've just fixed it in master by removing ability to set the direction for tabs:
http://plnkr.co/edit/RblHHQQbzMbGPRU3a9i8?p=preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants