angular-ui-bootstrap

AngularJS and Angular-UI Bootstrap tabs scope

a 夏天 提交于 2020-01-14 14:58:26
问题 I am using AngularJS and Angular-UI Bootstrap tabs. This is my controller: app.controller("SettingsCtrl", ['$scope','SettingsFactory','$stateParams', function($scope,SettingsFactory,$stateParams){ $scope.navType = 'pills'; $scope.saveLanguage = function() { console.log($scope.test.vari); // loged undefined } }]); My view <div class="row clearfix"> <tabset> <tab heading="Jezik"> <form role="form" name="test"> <div class="form-group"> <label for="lang">Izaberite jezik</label> <select class=

Twitter Bootstrap aligning checkbox

巧了我就是萌 提交于 2020-01-14 05:51:30
问题 How can I align <div class="checkbox">...</div> with the <input class="form-control" type="text" id="text"> and not the <label>...</label> ? I am using the latest bootstrap. Here is the plnkr. Update: To be precise, I am trying to vertically middle align the entire <div class="checkbox">...</div> with the <input> tag and not the tag's label 回答1: maybe try with nested columns: http://plnkr.co/edit/6iafYcHG9K461CiFNOpk?p=preview 来源: https://stackoverflow.com/questions/23290302/twitter-bootstrap

Angular-xeditable Editable (Bs3) with date and ng-repeat

守給你的承諾、 提交于 2020-01-13 12:06:58
问题 I try to extend a specific example of Angular-xeditable Editable row (Bs3) adding the field "date of birth" I've created a jsfiddle to describe the problem http://jsfiddle.net/ffgj62q0/ (right link) <div ng-app="app" ng-controller="Ctrl"> <table class="table table-bordered table-hover table-condensed"> <tr style="font-weight: bold"> <td style="width:35%">Name</td> <td style="width:20%">Date of b</td> <td style="width:10%">Status</td> <td style="width:10%">Group</td> <td style="width:25%">Edit

How to execute a sequence of events in Angular using $timeout

最后都变了- 提交于 2020-01-11 13:01:11
问题 I have a div in my view , I want to execute a function on ng-click() which turns the background for the div to 'color a' for 30 seconds if there's no action taken then for 60 seconds then change to 'color b' and if no action is taken beyond 120 seconds just hide the div.(this can be done via adding/removing classes as well ) In essence I'm looking to execute a sequence of $timeouts in angular where one timeout leads into another. Any help on that would be hugely appreciated. Thanks. 回答1: I

Setting the initial static tab in angular bootstrap

戏子无情 提交于 2020-01-11 04:50:29
问题 I don't seem to be able to set the inital tab in an angular bootstrap tabset. It always sets the left most tab to active. Given the html: <tabset> <tab heading="Static 1" active="data.static1">Static content</tab> <tab heading="Static 2" active="data.static2">Static content</tab> </tabset> and js: angular.module('plunker', ['ui.bootstrap']); var TabsDemoCtrl = function ($scope) { $scope.data = {static1: false, static2: true} }; See the Plunker Update 6 Aug 2013: Now fixed upstream see the

Modal Window Issue (Unknown Provider: ModalInstanceProvider)

柔情痞子 提交于 2020-01-10 12:12:01
问题 New to AngularJS and can't seem to find out what this error means. I've found a few others with the same error but it seems their issues don't correlate to mine. Unknown provider: $modalProvider <- $modal error with AngularJS (Seems I've got the latest ui-bootstrap version) And all of the others seem to be having scope issues with a modal, yet I can't seem to get the modal to begin with so I'm thinking these aren't related. Please tell me if I'm wrong and how that's the case: Scope issue in

Hide Angular UI Bootstrap popover when clicking outside of it

﹥>﹥吖頭↗ 提交于 2020-01-09 02:17:45
问题 I am trying to manually close a bootstrap popover to get it to close when I click anywhere on the document or body that isn't the popover. The closest thing I have found to accomplishing this is to create a directive (found this answer) but this is for a manual trigger if a variable is true or false . Could anyone help me figure out how to to get it to close if I click on anything that isn't the popover? I don't mind using jQuery $(document).click(function(e){}); I just have no clue how to

angular bootstrap datepicker get visible dates (day mode)

蓝咒 提交于 2020-01-07 08:49:07
问题 I need to get visible dates from the Datepicker if mode is day. Example: In this case I need to get these 42 days. Also if user change month, I should refresh the Datepicker controller view and get new 42 days. 回答1: So i managed to fix this. We need to extend uibDatepickerDirective angular.module('ui.bootstrap.datepicker') .config(function ($provide) { $provide.decorator('uibDatepickerDirective', function ($delegate, $timeout) { var directive = $delegate[0]; var link = directive.link; angular

The controller with the name is not registered error in UI Bootstrap Modal

穿精又带淫゛_ 提交于 2020-01-07 03:49:06
问题 I am not able to work out with controller that belongs to separate file in UIBootstrap modal functionality. However when I call the same piece of controller in same file then the functionality works perfectly. Below the piece of code:- Test.html <html ng-app="ui.bootstrap.demo"> <head> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.js"></script> <script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-2.5.0.js"></script> <script src="../Scripts/AngularControllers

$scope variable not changing in controller when changed using directive

☆樱花仙子☆ 提交于 2020-01-06 23:46:14
问题 I tried in all ways (keeping the scope to false, etc but not able to change my scope in controller),am I missing something. directive: angular.module("ui.materialize.inputfield", []) .directive('inputField', ["$timeout", function ($timeout) { return { transclude: true, scope: {}, link: function (scope, element) { $timeout(function () { Materialize.updateTextFields(); // The "> > [selector]", is to restrict to only those tags that are direct children of the directive element. Otherwise we