-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Tabset direction, parent scope #849
Comments
@martijndwars All these attributes are defined as This directive creates an isolated scope, so parent scope is your scope, where you define the tabset attributes. |
@bekos Where on the demo page (http://angular-ui.github.io/bootstrap/) does it show an example of direction? I'm pretty sure that the docs are out of date with the current version of UI... in fact, I thought the direction was set up before, but when I looked at UI's changelog (https://github.com/angular-ui/bootstrap/blob/master/CHANGELOG.md) I saw that I needed to upgrade. Do we think it would be possible to show versions of the docs (like Twitter Bootstrap is doing) so we know which version has what available as far as the API is concerned? |
@davidwparker In the demos the last tabset example is:
As far as the versions of the docs, I'll let one of the core guys chime in on that, but IMHO, versioning docs makes sense when you have significant version changes on a relatively stable project. However, this project has had 5 releases in 7 months, and the last 2 introduced breaking changes. In the future we are going to see some big breaking changes with Bootstrap 3 and Angular 1.2 being released, that each individually introduce major breaking changes. I think once this project stabilizes, your idea is a good one. But for now that's going to add a lot of work that should be invested into the project itself :). |
Yeah, I saw the vertical = 'true' but there wasn't any mention of direction='right' or anything like that, thus my confusion. I think if there's going to be a lot of changes (which I foresee, given what you said), then maybe a big warning at tho top of the documentation about the changes that are taking place and a link to the CHANGELOG would suffice. |
Hi,
The tabset compile function contains the following code:
I'm not very familiar with angular, but I really don't understand why the type and direction are evaluated in the parent scope. Being dependent on the parent scope seems to me like a very bad practice. Also, I see absolutely no reason not to define these properties as attributes on tabset, such as the case with vertical.
Is this a bug?
The text was updated successfully, but these errors were encountered: