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

tabset, active property on tab - undefined is not a function #611

@MannyC

Description

@MannyC

I get this when I try to use the active property on a tab, example:

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="bootstrap.min.css">
        <script src="angular.js">  </script>
        <script src="ui-bootstrap-tpls-0.4.0.js"> </script>
        <script src="angular-test.js"> </script >
    </head>
    <body ng-app="angular-test">
        <div ng-controller="AngularTestController">
            <tabset>
                <tab heading="Tab 1" active="true"> test 1 </tab>
                <tab heading="Tab 2"> test 2 </tab>
            </tabset>
        </div>
    </body>
</html>

angular-test.js:

angular.module('angular-test', ['ui.bootstrap']);
function AngularTestController($scope) {
  //nothing yet
}

Stack trace:
TypeError: undefined is not a function
at postLink (file:///C:/proj/angular-test/ui-bootstrap-tpls-0.4.0.js:2374:11)
at nodeLinkFn (file:///C:/proj/angular-test/angular.js:4406:13)
at delayedNodeLinkFn (file:///C:/proj/angular-test/angular.js:4559:11)
at compositeLinkFn (file:///C:/proj/angular-test/angular.js:4003:15)
at publicLinkFn (file:///C:/proj/angular-test/angular.js:3920:30)
at file:///C:/proj/angular-test/angular.js:4009:30
at new ngDirective.controller (file:///C:/proj/angular-test/angular.js:14046:5)
at invoke (file:///C:/proj/angular-test/angular.js:2902:28)
at Object.instantiate (file:///C:/proj/angular-test/angular.js:2914:23)
at file:///C:/proj/angular-test/angular.js:4805:24

  • Metadata

    Metadata

    Assignees

    No one assigned

      Type

      No type

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions