angular-ui-bootstrap-tab

Dynamic Content in Dynamic Tab (Angular, UI Bootstrap)

狂风中的少年 提交于 2019-12-22 05:25:11
问题 I'd like to use ng-include in the content of a dynamically generated tab using AngularJs and UI Bootstrap. I have a Plunker here: http://plnkr.co/edit/2mpbovsu2eDrUdu8t7SM?p=preview <div id="mainCntr" style="padding: 20px;"> <uib-tabset> <uib-tab ng-repeat="tab in tabs" active="tab.active" disable="tab.disabled"> <uib-tab-heading> {{tab.title}} <i class="glyphicon glyphicon-remove-sign" ng-click="removeTab($index)"></i> </uib-tab-heading> {{tab.content}} </uib-tab> </uib-tabset> </div> JS

Angular 2 ng-bootstrap,NgbTabset Error:Uncaught (in promise): TypeError: Cannot read property 'templateRef' of undefined

时光怂恿深爱的人放手 提交于 2019-12-12 04:31:53
问题 I try to use NgTabset but i get this error TypeError: Cannot read property 'templateRef' of undefined .When i replace the ng-template with the template tag everything works fine .What am i doing wrong? Here is the code: <ngb-tabset> <ngb-tab> <ng-template ngbTabTitle> Tab1 </ng-template> <ng-template ngbTabContent> Here is tab 1 </ng-template> </ngb-tab> </ngb-tabset> 回答1: It's a little hard to know without a Plunkr, but be sure to set templateRef and the # <app-content [templateRef]=

Angular JS access form in scope inside Angular Bootstrap tab

允我心安 提交于 2019-12-11 12:32:58
问题 I have a form in an Angular JS 1.4.1 prototype. I have a class on it set when it's dirty. I am trying to simulate someone "saving" the form, and therefore it's not dirty, it's "saved" so the changes are still present, but no longer dirty. Form fragment: <div class="override"> <tabset> <tab heading="My Tab"> <form name="overridesForm"> <p><input ng-model="rd.isOverriden" type="checkbox"> Foobar</p> <div class="buttons save-cancel"> <button class="btn btn-default btn-xs" ng-click="overridesForm

Angular UI bootstrap pagination not working inside ui.bootstrap.tabs

浪子不回头ぞ 提交于 2019-12-10 10:59:41
问题 Angular UI bootstrap gives awesome solutions. Very unfortunately Pagination (ui.bootstrap.pagination) does not working inside Tabs (ui.bootstrap.tabs) DEMO http://plnkr.co/edit/mLBkDwEVY6SIh5oCyy0K?p=preview angular.module('mytodos', ['ui.bootstrap']).controller('TodoController', function($scope) { $scope.filteredTodos = []; $scope.currentPage = 1; $scope.numPerPage = 10; $scope.maxSize = 5; $scope.todos = [{ "id": 1, "date": "12-Jan-2015", "cheque_no": 11111, "withdraw": 126.01, "deposit":

Angular UI bootstrap tabs - Can't change tabs with a button inside a tab

我怕爱的太早我们不能终老 提交于 2019-12-01 09:16:26
I'm trying to change my active tab with a button inside the tab directive uib-tabset , but the button is only working OUTSIDE this directive. What am I doing wrong? Here's the code: <button type="button" class="btn btn-default btn-sm" ng-click="active = 0">Select first tab - exterior button</button> <div class="tabs-container"> <uib-tabset active="active"> <uib-tab index="0" heading="tab one"> tab one </uib-tab> <uib-tab index="1" heading="tab two"> tab two <button type="button" class="btn btn-default btn-sm" ng-click="active = 0">Select first tab - internal button</button> </uib-tab> <uib-tab

Angular UI bootstrap tabs - Can't change tabs with a button inside a tab

我怕爱的太早我们不能终老 提交于 2019-12-01 05:46:33
问题 I'm trying to change my active tab with a button inside the tab directive uib-tabset , but the button is only working OUTSIDE this directive. What am I doing wrong? Here's the code: <button type="button" class="btn btn-default btn-sm" ng-click="active = 0">Select first tab - exterior button</button> <div class="tabs-container"> <uib-tabset active="active"> <uib-tab index="0" heading="tab one"> tab one </uib-tab> <uib-tab index="1" heading="tab two"> tab two <button type="button" class="btn

How to pass form data from angular ui bootstrap modal to view

十年热恋 提交于 2019-11-29 06:26:09
问题 I'm creating a webapp and I want to implement an option to add friends. I've created the add friend page as a modal with a text input field. I want to test this by displaying the input on my view page. How do I display this data onto my view page? Here's what I currently have index.html <div ng-controller="ModalDemoCtrl"> <script type="text/ng-template" id="myModalContent.html"> <div class="modal-header"> <h3 class="modal-title">I'm a modal!</h3> </div> <form name = "addFriendForm"> <input ng