mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

bs-active-pane doesn't work #2107

Closed ivanovaleksey closed 8 years ago

ivanovaleksey commented 8 years ago

Hi! I use v2.1.2 and I try to create some tabs. In my controller I have tabs from demo

$scope.tabs = {
    collection: [
      {
        "title": "Home",
        "content": "Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica."
      },
      {
        "title": "Profile",
        "content": "Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee."
      },
      {
        "title": "About",
        "content": "Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade.",
        "disabled": true
      }
    ],
    activeTab: "Profile"
  };

And in my .haml view I have

    %div{'bs-active-pane' => 'tabs.activeTab', 'bs-tabs' => ''}
      %div{'ng-repeat' => 'tab in tabs.collection', 'data-title' => '{{ tab.title }}', 'name' => '{{ tab.title }}', 'ng-bind'=>"tab.content", 'bs-pane' => ''}

But "Profile" is not activated be default and when I switch between tabs tabs.activeTab doesn't change. Is it version problem because in demo plunker everything is alright?

Can someone help me with it? Thank you.

ivanovaleksey commented 8 years ago

Seems to be solved. I have replaced bs-active-pane with ng-model.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.